为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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?