样式浏览器滚动条 [英] Styling Browser Scrollbar

查看:143
本文介绍了样式浏览器滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到这个年头,但由于它没有被广泛支持,网站正在减少使用它。

I saw this years before, but since it was not widely supported, websites are dropping usage of it.

我目前正在设计一个网站,设计和想知道CSS2在样式浏览器滚动条上是否有任何规格,因为默认颜色不适合。如果没有规范,任何对特定浏览器行为的引用将不胜感激。

I am currently designing a website which will have scrollbars inside the design and wondering whether CSS2 have any specification on styling browser scrollbars because the default colours don't fit. If there's no specification, any reference to specific browser behaviour would be appreciated.

如果没有CSS规范,我将不得不依靠一个自定义生成的滚动条使用JS 。

If there's no CSS specification on it, I would have to rely on a custom generated scrollbar using JS. References on how to build one is also appreciated.

推荐答案

JavaScript解决方案可以在 http://www.hesido.com/web.php?page=customscrollbar 。请注意,您必须为此付费,但即使您不想走这条路线,也会显示可能的结果。

A JavaScript solution can be found at http://www.hesido.com/web.php?page=customscrollbar. Note that you do have to pay for this, but even if you don't want to go that route it shows what is possible.

否则, jQuery解决方案原型解决方案也可用。

这篇关于样式浏览器滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆