Webkit和Mozilla修改了滚动条 [英] Webkit and Mozilla altering of the scrollbar
本文介绍了Webkit和Mozilla修改了滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前使用 :: - webkit-scrollbar
和 :: - webkit-scrollbar-track
改变滚动条样式,但我知道这不会在Firefox上显示。我已经尝试用moz替换webkit,但是没有做任何事情。
I'm currently using ::-webkit-scrollbar
and ::-webkit-scrollbar-track
to alter the scrollbar style, but I know that doesn't show up on Firefox. I have tried replacing webkit with moz, but that didn't do anything.
我尝试过jQuery,但在其他jquery mods等网站上实现它非常困难。
I have tried jQuery, but it's very hard to implement on site with the other jquery mods etc.
推荐答案
没有任何其他浏览器的webkit psuedo选择器的等价物。唯一的选择是基于javascript / jQuery。
There is no equivalent of that webkit psuedo selector for any other browser. The only alternative is javascript/jQuery based.
例如, jScrollPane 。
这篇关于Webkit和Mozilla修改了滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文