单选框,复选框样式修改
1:
input[type=radio],input[type=checkbox] {
display:inline-block;
vertical-align:middle;
width:20px;
height:20px;
margin-left:5px;
-webkit-appearance:none;
background-color:transparent;
border:0;
outline:0 !important;
line-height:20px;
color:#d8d8d8;
}
2:
input[type=radio]:after {
content:””;
display:block;
width:20px;
height:20px;
border-radius:50%;
text-align:center;
line-height:14px;
font-size:16px;
color:#fff;
border:2px solid #ddd;
background-color:#fff;
box-sizing:border-box;
}
3:
input[type=checkbox]:after {
content:””;
display:block;
width:20px;
height:20px;
text-align:center;
line-height:14px;
font-size:16px;
color:#fff;
border:2px solid #ddd;
background-color:#fff;
box-sizing:border-box;
}
4: