纯css修改单选、复选按钮样式
只支持IE9及以上
html
<label><input class="radio" type="radio" name="radio1"/><span class="radio-style"></span>10</label> <label><input class="radio" type="checkbox" name="radio1"/><span class="radio-style checkbox-style"></span>10</label>
css
.radio{display:none} .radio-style{background-color:#fff;border:2px solid rgba(0,0,0,0.15);border-radius:100%;display:inline-block;height:0.506666rem;width:0.506666rem;margin-right:0.133333rem;vertical-align:middle;line-height:1} .radio:checked + .radio-style:after{background-color:#57ad68;border-radius:100%;content:"";display:inline-block;height:0.293333rem;margin:0.106666rem;width:0.293333rem;} .checkbox-style,.radio:checked + .checkbox-style:after{border-radius:0