更改mozilla firefox浏览器的滚动条宽度

问题描述:

大家好,



我想在我的网站中调整我的Mozilla浏览器滚动条宽度。但是我无法获得成功......



任何人都可以帮我这个...



谢谢您提前预订



我尝试过:



:: - moz-scrollbar {width:15px; }

Hello everyone,

I want to resize my Mozilla browser Scrollbar width in my site. But I cannot get success ...

Can anybody help me for this ...

Thank you in advance

What I have tried:

::-moz-scrollbar { width: 15px; }

您无法使用CSS设置Firefox中滚动条的样式。自Firefox首次发布以来,人们一直在寻求这一点,但它仍然无法使用:

77790 - (scrollbar-colors)设置滚动条的样式(将:: :: moz-horizo​​ntal-scrollbar绑定到XBL) [ ^ ]



获取自定义滚动条的唯一方法是通过以下方式完全替换滚动条的JavaScript。有各种各样的插件可以做到这一点 - 例如:

You can't style the scrollbars in Firefox with CSS. People have been asking for this since Firefox was first released, but it's still not available:
77790 – (scrollbar-colors) Style the scrollbar (binding ::-moz-horizontal-scrollbar to XBL)[^]

The only way to get a custom scrollbar is to completely replace the scrollbar via Javascript. There are various plugins to do this - for example:
  • jsFancyScroll[^]
  • jScrollPane[^]
  • malihu-custom-scrollbar-plugin[^]