码迷,mamicode.com
首页 > 其他好文 > 详细

修改checkbox的样式

时间:2017-11-01 12:19:34      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:修改   idt   pad   efault   add   -128   doc   har   default   

<!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的样式

标签:修改   idt   pad   efault   add   -128   doc   har   default   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!