How do I use the jquery scrollbar paper plugin?

こ雲淡風輕ζ 提交于 2019-12-24 09:57:36

问题


I want to use the jquery scrollbar paper plugin to alter the style of scrollbars within the document. However the page for the plugin does not seem to have any documentation. How am I supposed to use this plugin (aside from including the js and css files the downloaded zip file gives you)?


回答1:


The example page shows that all you need to do is use the jQuery plugin on any elements you want to have a custom scrollbar.

$('.use-scrollbarpaper').scrollbarPaper();

And this adds divs with classes scrollbarpaper-track, scrollbarpaper-container and scrollbarpaper-drag which I presume are styled by default in the CSS provided, so you can style them as required.




回答2:


The code and some examples can be found on the plugin's googlecode page:

http://code.google.com/p/scrollbarpaper/source/browse/#svn%2Ftrunk



来源:https://stackoverflow.com/questions/7117472/how-do-i-use-the-jquery-scrollbar-paper-plugin

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