.slider {
-webkit-appearance: none;
width: 100%;
height: 3px;
background: #1B2FB2;
outline: none;
opacity: 0.8;
-webkit-transition: .2s;
transition: opacity .2s;
margin: 12px 0px 5px 0px;
width: 190px;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
appearance: none;
width: 11px;
height: 11px;
border-radius: 100%;
background: #1B2FB2;
cursor: pointer;
}
<input type = "range" min = "0" max = "100" value = "50" class = "slider">
1 个回答