首页 > 其他 > 详细

修改checkbox的样式

时间:2017-11-01 11:49:51      阅读:242      评论:0      收藏:0      [点我收藏+]

<!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;width: 12px;height: 12px;visibility: hidden;}
.wrappicinput .labelcheck {position: absolute;width: 12px;height: 12px;}
.wrappicinput .input_check+label {display: inline-block;width: 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>

技术分享

 

修改checkbox的样式

原文:http://www.cnblogs.com/luziluck/p/7765438.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!