JS/jQuery 风格的滚动条
我在这里搜索一个风格良好的滚动条,但没有找到...你能给我一些东西吗,因为我无法从互联网上找到著名的。我想要一个简单的滚动条,只是一条线或类似的东西。请在整个 HTML 页面中给出示例(带有 、
等标记)。
之前谢谢!
I search here for a good-styled scrollbar, but nothing... Can u offer me something, because I can't place the famous from Internet. I want a simple scrollbar, just a line or smth like that. Please give the example in a whole HTML page (with <head>
, <body>
etc. tags).
Thanks previously!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
样式良好的滚动条是浏览器已经呈现的滚动条。重新发明浏览器的组件通常需要大量工作,但收效甚微,而且可能会降低可用性。
至于浏览器滚动条的样式,除了 IE 之外,我不相信你可以,因为这在技术上是在 DOM 之外的。因此,您必须创建自己的拖动/滚动功能。
A well styled scrollbar is the one your browser already renders. Reinventing a component of the browser is usually a lot of work for little gain and, potentially negative usability.
As for styling a browser scrollbar, aside from IE, I do not believe you can, as that's technically outside the DOM. So you'll have to create your own drag/scroll functionality.