單選框,複選框樣式修改

1:web

 input[type=radio],input[type=checkbox] {app

display:inline-block;spa

vertical-align:middle;orm

width:20px;input

height:20px;it

margin-left:5px;io

-webkit-appearance:none;form

background-color:transparent;import

border:0;transform

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:

input[type=checkbox]:checked:after {
border: 4px solid #ddd;
background-color: #37AF6E;
}
5:
input[type=radio]:checked:after {
content: "";
transform:matrix(-0.766044,-0.642788,-0.642788,0.766044,0,0);
-webkit-transform:matrix(-0.766044,-0.642788,-0.642788,0.766044,0,0);
border-color: #37AF6E;
background-color: #37AF6E;
}
相關文章
相關標籤/搜索