我们可以重置 -webkit-slider-thumb 来更改范围类型输入 slider 的样式,但元素的时间轴 slider 不支持更改其默认(webkit)样式。
最佳答案
这也让我感到困惑,但事实证明您需要设置样式的选择器是:
input[type="range"]::-webkit-slider-thumb {
width: 5px;
border-radius: 5px;
background-color: #000;
}
查看http://jsfiddle.net/duopixel/q9GHA/ .
Webkit 似乎使用 audio::-webkit-media-controls-timeline 内的 <input type="range"> 作为时间线的接口(interface)!
关于css - 如何使用css更改audio::-webkit-media-controls-timeline的 slider 样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4908385/