核心提示:p class=checkbox font_slabelinput type=checkbox 设备状态/label/p.checkbox input[type=checkbox] {-webkit-...
<p class="checkbox font_s">
<label>
<input type="checkbox"> 设备状态
</label>
</p>
.checkbox input[type="checkbox"] {
-webkit-appearance: none; /*清除复选框默认样式*/
background: #fff url("../images/unchecked.png") no-repeat; /*复选框的背景图,就是上图*/
width: 15px;
height: 15px;
vertical-align: middle;
outline: none; /*去掉自带的边框*/
}
.checkbox input[type="checkbox"]:checked {
-webkit-appearance: none; /*清除复选框默认样式*/
background: url("../images/checked.png") no-repeat;
width: 15px;
height: 15px;
vertical-align: middle;
outline: none;
}


