Home  >  Article  >  Web Front-end  >  Introduction to the use of jquery scroll bar plug-in jScrollPane_jquery

Introduction to the use of jquery scroll bar plug-in jScrollPane_jquery

WBOY
WBOYOriginal
2016-05-16 17:16:401273browse

This is a js page scroll bar plug-in
Introduce three files when using: (fill in the path yourself)

Copy code The code is as follows:


< ;script type="text/javascript" src="path/jquery.mousewheel.js">


Then add a method to the container where the scroll bar needs to be added, and get it done
Copy Code The code is as follows:

$(function(){
$("#contentDiv").jScrollPane();
})

So useful!
ps: If you want to modify the default style of the scroll bar, you can open the jquery.jscrollpane.css file and modify it.
Of course, as a plug-in of jquery, the original jquery package cannot be missing and must be placed before the plug-in package. This article is omitted.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn