CSS customized scroll bar in div

后端 未结 19 1415
夕颜
夕颜 2020-11-21 11:05

How can I customize a scroll bar via CSS (Cascading Style Sheets) for one div and not the whole page?

19条回答
  •  遇见更好的自我
    2020-11-21 12:01

    I tried a lot of plugins, most of them don't support all browsers, I prefer iScroll and nanoScroller works for all these browsers :

    • IE11 -> IE6
    • IE10 - WP8
    • IE9 - WP7
    • IE Xbox One
    • IE Xbox 360
    • Google Chrome
    • FireFox
    • Opera
    • Safari

    But iScroll do not work with touch!

    demo iScroll : http://lab.cubiq.org/iscroll/examples/simple/
    demo nanoScroller : http://jamesflorentino.github.io/nanoScrollerJS/

提交回复
热议问题