zoukankan      html  css  js  c++  java
  • jScrollPane的使用需注意的问题

    使用方法:

    <!-- 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不可以定义高度,否则不会出现横向滚动条
  • 相关阅读:
    strcspn()函数
    makfile通用版本
    C实现简单的xml格式文件
    shell编程题(七)
    C语言实现五子棋
    打字软件(最终版本)
    TypeWriting
    KMP 串的模式匹配 (25分)
    C链表操作
    Ubuntu终端字体
  • 原文地址:https://www.cnblogs.com/lv_yantao/p/2228339.html
Copyright © 2011-2022 走看看