1.html
<div>
<input
type="checkbox" />123
</div>
<style>
input[type=checkbox],
input[type=radio] {
-webkit-appearance:
none;
width:
15px;
height:
15px;
margin:
0;
cursor:
pointer;
vertical-align:
bottom;
background:
#fff;
border:
1px
solid #54B6FF;
-webkit-border-radius:
1px;
-moz-border-radius:
1px;
border-radius:
3px;
-webkit-box-sizing:
border-box;
-moz-box-sizing:
border-box;
box-sizing:
border-box;
position:
relative;
}
input[type=checkbox]:active,
input[type=radio]:active {
border-color:
#54B6FF;
background:
#ebebeb;
}
input[type=checkbox]:hover
{
border-color:
#c6c6c6;
-webkit-box-shadow:
inset
0 2px
2px
rgba(0,
0, 0,
0.1);
-moz-box-shadow:
inset
0 2px
2px
rgba(0,
0, 0,
0.1);
box-shadow:
inset
0 2px
2px
rgba(0,
0, 0,
0.1);
}
input[type=checkbox]:checked,
input[type=radio]:checked {
background:
#fff;
}
input[type=checkbox]:checked::after
{
content:
url('img/select.png');
display:
block;
position:
absolute;
/* top: -7px; */
right:
0px;
/* left: -7px */
}
input[type=checkbox]:focus
{
outline:
none;
border-color:
#54B6FF;
}
</style>