

具体代码如下:
<input type="checkbox" v-model="checked" />
// css
input[type='checkbox']:checked:after
content '\2713'
background-color #FF7D41
position absolute
font-size 12px
font-weight 600
// border none
color #fff
width 13px
height 13px
border-radius 2px
ps: 主要作用在于content: '\2713'
网友评论