重写input radio样式

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style type="text/css">
.check-wrap{
position: relative;
height: 24px;
24px;
}
.icheck{
opacity: 0;
}
.ilabel{
border-radius: 3px;
cursor: pointer;
display: block;
position: absolute;
top: 0;
left: 0;
100%;
height: 100%;
}
.ilabel:after{
content: " ";
border: 2px solid #DDD;
display: block;
font-weight: bold;
text-align: center;
border-radius: 3px;
20px;
height: 20px;
}
.icheck:checked + .ilabel:after{
content: "✓";
border-color: #3f51b5;
background-color: #3f51b5;
color: #fff;
}
.icheck:indeterminate + .ilabel:after{
content: "■";
color: #3f51b5;
background-color: #FFF;
border-color: #3f51b5;
}
</style>
</head>
<body>
<div class="check-wrap">
<input type="checkbox" class="icheck" id="icheck" />
<label for="icheck" class="ilabel"></label>
</div>
</body>
</html>

原文地址:https://www.cnblogs.com/zhouzhou163/p/6100468.html