Home >Web Front-end >JS Tutorial >jquery scroll bar plug-in (can be customized)

jquery scroll bar plug-in (can be customized)

高洛峰
高洛峰Original
2016-12-28 10:04:311030browse

It will be convenient to use in the future. Import the

css file

de38e6b8b85ff6d6dbd177c98a0d7f5e

js introduction

e555eef75bd7ffe047a3d3891ffa01273fa3f474cbb4b6d948eebecb1be5dde4

<div class="mscroll">
这里放内容啊啊啊啊这里放内容啊啊啊啊这里放内容啊啊啊啊这里放内容啊啊啊啊。。。。。
</div>
<script type="text/javascript">
$(function(){
  $(".mscroll").mCustomScrollbar({
    scrollInertia:600,
    autoDraggerLength:false
  });
})
</script>

The above is the entire content of this article. I hope that the content of this article can bring some help to everyone's study or work. I also hope to support the PHP Chinese website!

For more jquery scroll bar plug-in (can be customized) related articles, please pay attention to the PHP Chinese website!

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