纯css更改radio和checkbox的样式
先直接上代码: input[type='checkbox']{ background-color:rgba(0,0,0,0); -webkit-appearance : none ; border:1px solid black; width:2rem; height:2rem; border-radius: 50%; outline: none; } input[type='checkbox']:checked{ -webkit-appearance : none ; background: url("yourbg") no-repeat center center; background-size:100%; outline: none; border:none;…