<!--
作者:duke
时间:2018-10-24
描述: 重置input 样式
-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>table</title>
</head>
<style>
input[disabled='disabled'] {
-webkit-appearance: none;
padding: 0;
margin: 0;
border: 0;
16px;
height: 16px;
padding: 10px 0;
background: red;
position: relative;
margin-left: 300px;
}
input[disabled='disabled']:after {
content: "";
1px;
height: 21px;
position: absolute;
background: #000;
transform: rotateZ(41deg);
left: 8px;
top: 0;
}
input[disabled='disabled']:before {
content: "";
1px;
height: 21px;
position: absolute;
background: #000;
transform: rotateZ(-41deg);
left: 8px;
top: 0;
}
/*input:checked {
-webkit-appearance: none;
outline: none;
padding: 0;
margin: 0;
border: 0;
16px;
height: 16px;
padding: 10px 0;
background: red;
position: relative;
}*/
input:checked:after {
content: "";
position: absolute;
left: 6px;
3px;
height: 11px;
top: 3px;
border-bottom: 2px solid #fff;
border-right: 2px solid #fff;
transform: rotateZ(41deg);
}
input[type='checkbox'] {
-webkit-appearance: none;
outline: none;
padding: 0;
margin: 0;
border: 0;
16px;
height: 16px;
padding: 10px 0;
background: red;
position: relative;
}
</style>
<body>
<input type="checkbox" disabled="disabled" />
<input type="checkbox" />
</body>
</html>