如何使自定义滚动条与CSS [英] how to make a custom scroll bar with css
问题描述
只是想知道是否可以用css(而不是主窗口)更改滚动条的样式
我有一个文本在div内滚动
感谢您的支持,感谢您对我们的支持!
某些版本的Internet Explorer允许使用CSS为滚动条设计样式,但这不是CSS标准的一部分,
对于跨浏览器兼容性,您需要使用JavaScript来模拟滚动条;幸运的是有图书馆可以做到这一点,例如JQuery插件 jScrollPane 。
just wondering if it's possible to change the style of a scroll bar with css,(not the main window)
I have a some text inside a div that scrolls down and the scrollbar is just too big, and makes the whole website ugly,
any ideas?
thanks
Some versions of Internet Explorer allowed you to style scrollbars with CSS, but this was not part of the CSS standard and probably not the way to go these days.
For cross-browser compatibility, you will need to simulate scrollbars using JavaScript; luckily there are libraries to do this, such as the JQuery plugin jScrollPane.
这篇关于如何使自定义滚动条与CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!