http://www.cnblogs.com/chaoyuehedy/p/5586735.html 一个很好的设计checkbox的,
之前我们按UX要求实现的,还是有差距,还要继续学习啊~~~
input[type="checkbox"]{
-webkit-appearance: none;
-moz-appearance:checkbox;
vertical-align: middle;
background-image: url("images/icon_select_disabled.png");
background-size: 14px 14px;
height: 14px;
width: 14px;
margin: 0 4px 0 0;
outline: none;
}
input[type="checkbox"]:hover{
-webkit-appearance: none;
-moz-appearance:checkbox;
vertical-align: middle;
background-image:url("images/icon_select_normal.png");
background-size: 14px 14px;
height: 14px;
width: 14px;
margin: 0 4px 0 0;
outline: none;
}
input[type="checkbox"]:checked {
height: 14px;
width: 14px;
margin: 0 4px 0 0;
outline: none;
-webkit-appearance: none;
-moz-appearance:checkbox;
vertical-align: middle;
background-image: url("images/icon_select_selected.png");
background-size: 14px 14px;
}