更改mozilla firefox浏览器的滚动条宽度 [英] Change scrollbar width of mozilla firefox browser

查看:663
本文介绍了更改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[^]


这篇关于更改mozilla firefox浏览器的滚动条宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆