容器中使用的 YUI 皮肤滚动条
如何在 YUI 容器中实现自定义外观的滚动条?
How can I implement custom-looking scrollbars in YUI containers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在 YUI 容器中实现自定义外观的滚动条?
How can I implement custom-looking scrollbars in YUI containers?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
使用 YUI3,您可以更改内部框架的滚动条。如果你想改变实际浏览器的外部滚动条——就放弃这个想法吧。这不值得让人头疼。太多的浏览器根本不允许你这样做。
进行皮肤设置的内部设置示例
以下是使用 YUI 3.4 CSS
: HTML:
YUI:
注意,这几乎是我的项目的复制/粘贴 - 快速删除了任何标识符。它可能无法作为复制/粘贴使用..但您会明白要点。
最终产品:
您可以通过不使用“overflow: auto;”走得更远CSS 并使用 YUI 3 ScrollView 。我自己在 YUI 上使用 Paged 版本。进行 up & 操作很容易。按页向下&百分比。
希望这就是您正在寻找的内容,而不是浏览器的滚动条。
Using YUI3, you can change the scroll bars of an internal frame. If you ment the external scroll bars of the actual browser -- just drop the idea. It is not worth any headache. Too many browsers simply won't let you.
Here is example of an internal setup skinned in YUI 3.4
CSS:
HTML:
YUI:
Note, this is pretty much a copy/paste from a project of mine -- with a quick removal of any identifiers. It may not work as a copy/paste .. but you'll get the jist.
Final product:
You could go even further by not using a "overflow: auto;" CSS and use the YUI 3 ScrollView along with it. I use the Paged version on YUI myself. It is easy enough to do a up & down by page & percentages.
Hopefully this is what you were looking for, not the browser's scroll bar.