input[type='checkbox']{
5rem;
height: 5rem;
-webkit-appearance: none; /*清除复选框默认样式*/
background: url("../../assets/card/Visits_Card-nocheck.png") no-repeat; /*复选框的背景图,就是上图*/
background-size: cover;
vertical-align: middle;
}
input[type="checkbox"]:checked {
-webkit-appearance: none; /*清除复选框默认样式*/
background: url("../../assets/card/Visits_Card-check.png") no-repeat; /*复选框的背景图,就是上图*/
background-size: cover;
height: 5rem; /*高度*/
vertical-align: middle;
5rem;
}
input[type='radio']:checked") 来获取被选中的哦框