改变滚动条的颜色?

发布于 2024-09-03 19:57:43 字数 186 浏览 9 评论 0原文

在div中我给了overflow auto有一个滚动条来显示超出限制的内容 我的滚动条显示为蓝色,不适合我的布局我该如何更改颜色

div#navigation{background:#efe9b9; overflow:auto}

这是我正在使用的 css ...我想要棕色滚动条 如何获得

In a div I gave overflow auto to have a scroll bar to display the content that exceeds the limit
My scroll bar appears in blue color that doesn't suit my layout how can i change the color

div#navigation{background:#efe9b9; overflow:auto}

This is the css i am using ... I want brown colored scrll bar
How to get it

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独孤求败 2024-09-10 19:57:43

(IE 除外)您无法仅使用 CSS 更改滚动条,请查看 JScrollPane 用于跨浏览器兼容的滚动条更改器。

(except in IE)You can't change Scrollbars with CSS only, check out the JScrollPane for a Cross browser compatible scrollbar changer.

薄荷梦 2024-09-10 19:57:43

你可以在 IE 中使用,但我认为它已被弃用(或在 IE8 中删除)。

您也可以在 Safari 中执行此操作。

请注意,这会对可用性产生负面影响。

You can in IE, but I think it's been deprecated (or removed in IE8).

You can also do it in Safari.

Be warned that it will affect usability negatively.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文