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/
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。