小程序checkbox调整大小

.cb{
  transform: scale(0.6,0.6);
}
<view>
    <label class="lab" for="box1">
      <checkbox value="v1" checked class="cb"/>复选框
    </label>
  </view>

扩展 : https://www.runoob.com/cssref/css3-pr-transform.html

Transform属性应用于元素的2D或3D转换。这个属性允许你将元素旋转,缩放,移动,倾斜等。

转 :  https://cloud.tencent.com/developer/article/1112032

原文地址:https://www.cnblogs.com/fps2tao/p/11090493.html