https://blog.csdn.net/qq_27717857/article/details/80684375
修改:
input[type=“checkbox”]{
-webkit-appearance: none;
vertical-align:middle;
margin-top:0;
background:#fff;
border: 1px solid #dcdee2;
border-radius: 3px;
height: 16px;
min-width: 14px;
margin-right: 5px;
cursor: pointer;
}
input[type=“checkbox”]:checked {
background: #3190e8;
}
input[type=checkbox]:checked::after{
content: ‘’;
top: 13px;
left: 2px;
position: absolute;
background: transparent;
border: #fff solid 2px;
border-top: none;
border-right: none;
height: 6px;
width: 10px;
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
<div v-for="(item,key) in viewAuthList" style="float:left;margin-right: 12px;position: relative;">
<input type="checkbox" :value="item.id" :id="item.id" v-model="formValidate.interest" class="" />
<label :for="item.id" style="cursor: pointer;">{{item.name}}</label>
</div>