小程序checkbox调整大小(checkbox样式修改)小程序checkbox调整大小(checkbox样式修改)

 

 

.skyCheckbox{
  transform: scale(0.7,0.7);
  -webkit-transform: scale(0.7,0.7);
}
<label class="checkbox">
          <checkbox class="round red skyCheckbox" bindtap="checkboxChange" checked="{{checkboxValue}}"/>
          <text>同意以上权益条款</text>
</label>

 其他样式修改      不行的话加!important;

/*checkbox 整体大小  */
checkbox {
  width: 240rpx;
  height: 90rpx;
}
/*checkbox 选项框大小  */
checkbox .wx-checkbox-input {
  width: 50rpx;
  height: 50rpx;
}
/*checkbox选中后样式  */
checkbox .wx-checkbox-input.wx-checkbox-input-checked {

  background: #FF6A72 !important;

}
/*checkbox选中后图标样式  */
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  width: 28rpx;
  height: 28rpx;
  line-height: 28rpx;
  text-align: center;
  font-size: 22rpx;
  color: #fff;
  background: transparent;
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
}

小程序checkbox调整大小(checkbox样式修改)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案