為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

scrollbar css stylesheet does not apply

  • 3 回覆
  • 92 有這個問題
  • 11 次檢視
  • 最近回覆由 cor-el

more options

Hello,

this css style, which works fine with IE, does not display a colored scrollbar in Firefox:

BODY {

  scrollbar-base-color:#F06F6F;
  scrollbar-track-color:#D04F4F;
  scrollbar-face-color:#C03F3F;
  scrollbar-highlight-color:#C03F3F;
  scrollbar-3d-light-color:#C03F3F;
  scrollbar-dark-shadow-color:#C03F3F;
  scrollbar-shadow-color:#C03F3F;
  scrollbar-arrow-color:#E06F6F;

}

Are colored scrollbars not supported with Firefox, or do I have to change something within the code (it should also work with IE afterwards).

Thank you, newnexo

Hello, this css style, which works fine with IE, does not display a colored scrollbar in Firefox: BODY { scrollbar-base-color:#F06F6F; scrollbar-track-color:#D04F4F; scrollbar-face-color:#C03F3F; scrollbar-highlight-color:#C03F3F; scrollbar-3d-light-color:#C03F3F; scrollbar-dark-shadow-color:#C03F3F; scrollbar-shadow-color:#C03F3F; scrollbar-arrow-color:#E06F6F; } Are colored scrollbars not supported with Firefox, or do I have to change something within the code (it should also work with IE afterwards). Thank you, newnexo

由 newnexo 於 修改

所有回覆 (3)

more options

Changing scrollbar colors using css is not a standard css code and is not supported in Firefox.

This link may help - http://www.dreamincode.net/forums/topic/15885-change-scroll-bar-color-in-firefox-and-opera/

more options

Do you have CSS about custom scrollbar?