📅  最后修改于: 2022-03-11 15:00:17.158000             🧑  作者: Mango
.slide-container {
width: 300px;
}
.slider {
-webkit-appearance: none;
width: 100%;
height: 5px;
border-radius: 5px;
background: #FFFFFF;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 23px;
height: 24px;
border: 0;
border-radius: 50%;
background-image: url('https://img.icons8.com/material-outlined/344/average-2.png');
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 23px;
height: 24px;
border: 0;
border-radius: 50%;
background-image: url('https://img.icons8.com/material-outlined/344/average-2.png');
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
cursor: pointer;
}