搜尋 Mozilla 技術支援網站

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

了解更多

scrollbar css stylesheet does not apply

  • 3 回覆
  • 92 有這個問題
  • 4 次檢視
  • 最近回覆由 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?