Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Trying to change how the scrollbar appears on my website for firefox

  • 5 回覆
  • 114 有這個問題
  • 64 次檢視
  • 最近回覆由 cor-el

more options

Hi so im trying to change my websites scrollbar for firefox browsers. Ive already done it for IE and chrome with this code: /*Custom scrollbar for IE <style>

body, html{scrollbar-arrow-color: #001eff;

scrollbar-track-color: #00e9ff; scrollbar-face-color: #0040ff; scrollbar-highlight-color: #517cff; scrollbar-3dlight-color: #00fff4; scrollbar-shadow-color: #214cc; scrollbar-darkshadow-color: #001f7; } </style> /*Custom Scrollbar for Chrome <style>

-webkit-scrollbar { width: 4px; height: 4px;}
-webkit-scrollbar-button { background-color: #00e9ff; }
-webkit-scrollbar-track { background-color: #999;}
-webkit-scrollbar-track-piece { background-color: #00e9ff;}
-webkit-scrollbar-thumb { height: 50px; background-color: #0040ff; border-radius: 50px;}
-webkit-scrollbar-corner { background-color: #999;}}
-webkit-resizer { background-color: #FFFFFF;}

</style>

Hi so im trying to change my websites scrollbar for firefox browsers. Ive already done it for IE and chrome with this code: /*Custom scrollbar for IE <style> body, html{scrollbar-arrow-color: #001eff; scrollbar-track-color: #00e9ff; scrollbar-face-color: #0040ff; scrollbar-highlight-color: #517cff; scrollbar-3dlight-color: #00fff4; scrollbar-shadow-color: #214cc; scrollbar-darkshadow-color: #001f7; } </style> /*Custom Scrollbar for Chrome <style> ::-webkit-scrollbar { width: 4px; height: 4px;} ::-webkit-scrollbar-button { background-color: #00e9ff; } ::-webkit-scrollbar-track { background-color: #999;} ::-webkit-scrollbar-track-piece { background-color: #00e9ff;} ::-webkit-scrollbar-thumb { height: 50px; background-color: #0040ff; border-radius: 50px;} ::-webkit-scrollbar-corner { background-color: #999;}} ::-webkit-resizer { background-color: #FFFFFF;} </style>

所有回覆 (5)

more options

For Firefox try using the -moz prefix instead of -webkit. For example:

-moz-scrollbar { width: 4px; height: 4px;}

more options

i think for the most part this won't be possible in firefox - see bug #77790, filed over a decade ago (please don't comment in bug reports).

more options

Didn't work :(

more options

this site said you can, but I think you mab be right about it not being supported http://codemug.com/html/custom-scrollbars-using-css/

more options