开发者

How to change the slider style of audio::-webkit-media-controls-timeline using css?

开发者 https://www.devze.com 2023-02-09 06:23 出处:网络
We can reset -webkit-sli开发者_开发知识库der-thumb to change the style of range type input\'s slider, but the timeline-slider ofelement is not support to change its default(webkit) style.This baffled

We can reset -webkit-sli开发者_开发知识库der-thumb to change the style of range type input's slider, but the timeline-slider of element is not support to change its default(webkit) style.


This baffled me too, but it turns out the selector you need to style is:

  input[type="range"]::-webkit-slider-thumb {
    width: 5px;
    border-radius: 5px;
    background-color: #000;
  }

Check it out at http://jsfiddle.net/duopixel/q9GHA/.

Webkit seems to use an <input type="range"> inside audio::-webkit-media-controls-timeline as an interface to the timeline!

0

精彩评论

暂无评论...
验证码 换一张
取 消