jScrollPane的使用需注意的问题
2011-10-29 08:59
183 查看
使用方法:
Then you just need to initialise jScrollPane on document.ready (using a selector which will find the content you want to apply jScrollPane to):
<!-- 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.4.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>
Then you just need to initialise jScrollPane on document.ready (using a selector which will find the content you want to apply jScrollPane to):
$(function() { $('.scroll-pane').jScrollPane(); });
.scroll-pane不可以定义高度,否则不会出现横向滚动条
相关文章推荐
- mysql使用高版本登录低版本的时候注意的问题
- 使用jpa需要注意的问题
- Hibernate中使用dao时注意问题
- java在使用实现了List接口时候应该注意的问题
- Android使用Bmob移动后端云Restful API需要注意的问题
- PCB新手使用中要注意的问题
- 使用输入文件流的eof()时要注意一个问题
- jsp中的include动作使用注意的问题
- Inputstream读取文件,使用read()方法,判断尾标记需要注意的问题
- 使用C#通过Oracle.DataAccess连接Oracle,部署时需要注意版本问题
- -Android开发中,使用线程应该注意的问题!
- QSplitter 控件使用时要注意的问题
- 使用C#异步调用WebServices时需要注意的问题
- 使用引用形参需要注意的问题
- Html使用自定义光标的一点需要注意的小问题。
- vue+elementUI中使用 el-autocomplete 实现远程搜索的下拉框需要注意的问题
- java String.split()使用注意点和问题
- 数组与类使用PHP的可变变量名需要的注意的问题
- foreach 使用&引用赋值要注意的问题
- struts 2 使用注意问题