改变checkbox样式
<input type="checkbox" checked id="weather">
<label for="weather"></label>
<label>111</label>
input[type=checkbox] {
visibility: hidden;
}
#weather+label {
display: block;
width: 15px;
height: 15px;
cursor: pointer;
position: absolute;
top: 10px;
left: 10px;
background: rgba(21, 60, 110, 1);
border: 1px solid rgba(1, 177, 255, 1);
}
#weather:checked+label::before {
display: block;
content: "\2713";
text-align: center;
font-size: 14px;
color: white;
position: absolute;
top: -8px;
left: 3px;
}
改变滚动条样式
::-webkit-scrollbar {
width: 0.3vw;
height: 1px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: #27a1ff;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
border-radius: 10px;
background: RGBA(14, 22, 34, 0.01);
}