重写checkbox

重写checkbox

 

 

<html>

<body>

<style>
input[type='checkbox']{
width: 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>

上一篇:python界面如何设置成黑色或者白色背景


下一篇:Idea2021.1使用手册-Settings(Appearance & Behavior ,KeyMap,Editor)