Flex - 使用 CSS 属性更改自定义滚动条的颜色
目前,我正在使用 CSS 样式表使用自定义嵌入图像来实现滚动条。这是一个非常简单的细滚动条。我想在运行时使用 CSS 属性配置这个滚动条,但到目前为止我还无法这样做。 我知道这是可以做到的,因为我在网上看到过它的例子,但没有代码可供审查。有人有什么建议吗?
谢谢!
Currently, I am implementing a scrollbar using a custom embedded image using my CSS stylesheet. This is a very simple, thin scrollbar. I would like to configure this scrollbar using CSS properties at runtime, but so far I have been unable to do so.
I know it can be done because I've seen examples of it in the net, but no code to review. Anyone have any suggestions?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此博客有一个示例,您可以通过右键单击查看源代码:
http://www.axelscript.com/2008/02/20/custom-scroll-bar-using-css/
这个有一些重定向到带有图像皮肤的示例的链接:
http://www.foxarc.com/blog/article/101.htm
您可以在这里看到很多滚动条的 css 内容以及几乎所有其他内容:
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html#
This blog has an example that you can view the source of with a right click:
http://www.axelscript.com/2008/02/20/custom-scroll-bar-using-css/
This one has a few links that redirect to examples with image skins:
http://www.foxarc.com/blog/article/101.htm
You can see a lot of the css stuff for scrollbars and pretty much everything else here:
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html#