修改checkbox的样式

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>chec</title>

<style>
*{margin:0px;padding: 0px;}
span.wrappicinput {position: relative;}
.wrappicinput .input_check {position: absolute; 12px;height: 12px;visibility: hidden;}
.wrappicinput .labelcheck {position: absolute; 12px;height: 12px;}
.wrappicinput .input_check+label {display: inline-block; 12px;height: 12px;background: url(./easyui/themes/default/images/tree_icons.png) no-repeat;background-position: -210px -21px;}
.wrappicinput .input_check:checked+label {background-position: -226px -21px;}

</style>
</head>
<body>

<span class="wrappicinput">
<input type="checkbox" class="input_check" id="check1">
<label class="labelcheck" for="check1" ></label>
</span>


</body>
</html>

原文地址:https://www.cnblogs.com/luziluck/p/7765438.html