开发者

Style range property

开发者 https://www.devze.com 2023-01-27 15:30 出处:网络
I saw some website where someone styled the html5 range input and changed what it\'s handle looked like. How could I do that? Ar开发者_如何学Ce there CSS3 properties for it\'s handle, or should I make

I saw some website where someone styled the html5 range input and changed what it's handle looked like. How could I do that? Ar开发者_如何学Ce there CSS3 properties for it's handle, or should I make an image that covers it and stays on top with javascript?


No, there is currently no hooks in CSS to target the slide knob. You'd have to try hacking it with JS for now. Hopefully a future version of CSS Basic UI will define a way to do this.


You can in Webkit, through the :-webkit-slider-thumb pseudo-element: http://jsfiddle.net/leaverou/BNm8j/

0

精彩评论

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