微信小程序checkbox

<checkbox-group bindchange="checkboxChange">
<label class="checkbox" wx:for="{{items}}" wx:key="item">
<checkbox value="{{item.name}}" checked="{{item.checked}}">{{item.value}}</checkbox>
</label>
</checkbox-group>

去掉checkbox前面的方框/样式修改

checkbox {
    /*checkbox 整体样式 */
}

checkbox .wx-checkbox-input {
    /* checkbox 前面选项框的背景样式 */
}

checkbox .wx-checkbox-input.wx-checkbox-input-checked {
    /* checkbox 被选中后前面选项框的背景样式 */
}

checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
    /* checkbox 被选中后前面对勾的样式 */
}

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2021-11-04
  • 2022-02-11
  • 2021-07-09
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案