Application of jquery scroll bar plugin Nanoscroller

Source: Internet
Author: User
Tags jquery library

The default scroll bar style, the compatibility of each version is not very good, recommend a jquery plugin Nanoscroller, you can customize the style of the scroll bar.

Application:

1. Introducing Style Nanoscroller.css

<link rel= "stylesheet" href="Nanoscroller.css">

Customize the style of the scroll bar in the page

The custom style is as follows:

2. Two JS files, one jquery library, one jquery.nanoscroller.js

<script src= "Jquery-3.2.1.min.js" ></script>
<script src= "Nanoscroller.js" ></script>

The scrolling JS code must be started by default on the page:

The control internally queries under a node by default: as shown in

3:html must have a large div class named Nano wrapped with a small class named Nano-content's Div

<id="aboutclass=" Nano"> <class=" nano-content "> ... the content here ... (Content part of scroll bar) </div></div>

Application of jquery scroll bar plugin Nanoscroller

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.