是否有可能在IE中实现WebKit滚动条效果? [英] Is it possible to achieve the WebKit Scrollbar effect in IE?
问题描述
我想设置自定义滚动条的样式。我知道这可以通过WebKit实现,但是可以在Internet Explorer中实现类似的效果吗?
I want to style my custom scrollbar. I know this is possible with WebKit, but is it possible to achieve a similar effect in Internet Explorer?
推荐答案
一般来说,是的,它是可能,IE浏览器只有浏览器特定的CSS:
Generally, yes it's possible, with only browserspecific CSS for IE:
BODY {
background-color : orange;
scrollbar-face-color : red;
scrollbar-arrow-color : green;
scrollbar-track-color : yellow;
scrollbar-shadow-color : pink;
scrollbar-highlight-color : white;
scrollbar-3dlight-color : brown;
scrollbar-darkshadow-Color: gray;
}
你可以玩它。 更多详情
了解更多控件有几个JS-Plugins可以像在Webkit中一样实现IE的外观和感觉。我觉得很难应用这些,但是我认为这里插件列表没问题:
For more control there are several JS-Plugins to achieve the same look and feel for IE like in Webkit. I find it difficult to apply these, but here a list of Plugins i think, they're OK:
- jQuery custom content scroller
- dw_scroll
- jscrollpane
类似插件的列表: http://slodive.com/web-development/jquery-scroll/
要使其正常运行,将HTML标记设置为与示例中的完全相同。
To get it work, it's important to set your HTML-Markup as exactly the same as in the examples.
您可以做的是,打开示例HTML并根据您的需要对其进行修改。我认为这是最简单的方法。
What you can do is, open the example HTML and modify them to your needs. That's the easiest way, i think.
希望这有助于:)
这篇关于是否有可能在IE中实现WebKit滚动条效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!