改变滚动条的颜色?
在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
(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.
你可以在 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.