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)?
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.
The code and some examples can be found on the plugin's googlecode page:
http://code.google.com/p/scrollbarpaper/source/browse/#svn%2Ftrunk
精彩评论