How do you make a custom scroll bar?

前提是你 提交于 2019-12-12 06:37:38

问题


Can anyone give a thorough explanation of how to make custom scroll bars? Are custom scroll bars compatible with all browsers?


回答1:


You need to use pure javaScript to become compatible with all browsers.

This is one of the best solution for that

http://www.script-tutorials.com/custom-scrollbars-cross-browser-solution/




回答2:


These were one search away, and they're really good:

http://codemug.com/html/custom-scrollbars-using-css/

http://www.hongkiat.com/blog/css-scroll-bar/

http://www.codeproject.com/Tips/674478/Customize-Scrollbars-using-CSS3




回答3:


::-webkit-scrollbar-track {
      background-color: #eaeaea;
      border-left: 1px solid #ccc;
}

Simply add the above.



来源:https://stackoverflow.com/questions/20714133/how-do-you-make-a-custom-scroll-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!