jScrollPane 介绍
jscrollPane 是一个使用 jQuery 和 css 打造的跨浏览器滚动条风格插件,通过简单的 css 设置就能够替换所有分块元素在浏览器中默认的滚动条样式。
用法
使用 jscrollPane 非常简单。你只需将相关文件包含在文档的 <head> 中:
引入文件
<!-- styles needed by jscrollPane -->
<link type="text/css" href="style/jquery.jscrollpane.css" rel="stylesheet" media="all" />
<!-- latest jQuery direct from google's CDN -->
<script type="text/JavaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<!-- the mousewheel plugin - optional to provide mousewheel support -->
<script type="text/JavaScript" src="script/jquery.mousewheel.js"></script>
<!-- the jscrollPane script -->
<script type="text/JavaScript" src="script/jquery.jscrollpane.min.js"></script>
js
然后你只需要在 document.ready 上初始化 jScrollPane(使用一个选择器,它会找到你想要应用 jScrollPane 的内容)
$(function()
{
$('.scroll-pane').jScrollPane();
});
网站地址:http://jscrollpane.kelvinluck.com/
GitHub:https://github.com/vitch/jScrollPane
网站描述:替换默认滚动条样式的jQuery插件
jScrollPane
官方网站:http://jscrollpane.kelvinluck.com/
小编说
以上是编程之家为你收集整理的jScrollPane全部内容。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。