重写checkbox

<html>

<body>

<style>
input[type='checkbox']{
14px;
height: 14px;
background-color: #fff;
appearance:none;
-webkit-appearance:none;
-o-appearance:none;
-moz-appearance:none;
border: 1px solid #FFAD01;
border-radius: 2px;
outline: none;
}
input[type=checkbox]:checked{
background: url("https://localhost/null/checkbox%20selected.svg")no-repeat center;
}

input[type=checkbox]:focus{
outline: none;
}
</style>
<input type="checkbox" class="selected" >
</body>
</html>

原文地址:https://www.cnblogs.com/developer-ios/p/14900903.html