.hide-radio{
position: absolute;
width: 0;
height: 0;
opacity: 0;
}
隐藏单选
.edf-line .checkbox_ico {
position: absolute;
top: 50%;
right: 0;
-webkit-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
-moz-transform: translate(0, -50%);
transform: translate(0, -50%);
display: block;
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid #e7e7e7;
-webkit-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.edf-line .checkbox_ico:before {
content: “”;
display: block;
top: 2px;
left: 2px;
position: absolute;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #4ea3fd;
-webkit-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
transition: all 0.3s ease;
-webkit-transform: scale(0);
-ms-transform: scale(0);
-moz-transform: scale(0);
transform: scale(0);
}
单选框的样式
input:checked ~ .checkbox_ico {
border-color: #4ea3fd;
}
这个比较少见 这东西可以改变选中的类的样式
还是比较少见的