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

美化checkbox

时间:2016-02-26 18:55:52      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>chec</title>
<style>
#container {margin: 20px auto;}
#container span {position: relative;}
#container .input_check {position: absolute;visibility: hidden;}
#container .input_check+label {display: inline-block;width: 16px;height: 16px;border: 1px solid #ae8e37;}
#container .input_check:checked+label:after {content: "";position: absolute;left: 2px;bottom: 12px;width: 9px;height: 4px;
border: 2px solid #ae8e37;border-top-color: transparent;border-right-color: transparent;
-ms-transform: rotate(-60deg);
-moz-transform: rotate(-60deg);
-webkit-transform: rotate(-60deg);
transform: rotate(-60deg);}

</style>
</head>
<body>

<h3></h3>

<div id="container">
<span><input type="checkbox" class="input_check" id="check3"><label for="check3"></label>111</span>
<span><input type="checkbox" class="input_check" id="check4"><label for="check4"></label>222</span>
</div>

</body>
</html>

美化checkbox

标签:

原文地址:http://www.cnblogs.com/ll-taj/p/5221210.html

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