<分区>
我想自定义 <input type="range">
使用 CSS。我想要达到的结果是这样的:
但是我下面的代码给了我这个
这是我的代码:
input[type='range'] {
border-radius: 5px;
height: 6px;
vertical-align: middle;
-webkit-appearance: none;
}
input[type="range"]::-moz-focus-inner:focus{
border : 0px;
outline: 0;
}
input[type='range']::-moz-range-track {
border-radius: 5px;
background-color: #E71D49;
height: 6px;
border: 1px dotted transparent !important;
}
input[type='range']::-webkit-slider-thumb {
border-radius: 20px;
background-color: #FFF;
border:none;
box-shadow: 0 5px #000;
height: 5px;
width: 5px;
}
input[type='range']::-moz-range-thumb {
border-radius: 20px;
background-color: #fff;
border:none;
height: 20px;
box-shadow: 3px 2px 3px #000;
width: 20px;
}
是否可以将 slider 分为“事件”和“非事件”?
提前致谢 达里奥