input[type='checkbox']{
width: 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;
width: 5rem;
}
改变checkbox默认样式

 

改变checkbox默认样式

 

 

input[type='radio']:checked") 来获取被选中的哦框

相关文章:

  • 2021-09-18
  • 2021-11-03
  • 2022-12-23
  • 2021-09-27
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案