自定义滚动条样式jquery.tinyscrollbar.min.js 插件

摘要:
-Jquery.tinyscrollbar.min.js自定义滚动条样式代码如下!DOCTYPEhtmlPUBLIC“-//W3C//DTDXHTML1.0严格//EN”http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“˃˂htmlxmlns=”http://www.w3.org/1999/xhtml“lang=”en“xml:lang

-jquery.tinyscrollbar.min.js 自定义滚动条样式

自定义滚动条样式jquery.tinyscrollbar.min.js 插件第1张

代码如下

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"lang="en"xml:lang="en">

<head>
    <meta http-equiv="Content-Type"content="text/html; charset=utf-8" />
    <title>Tiny Scrollbar: A lightweight jQuery plugin</title>
    <link rel="stylesheet"href="css/website.css"type="text/css"media="screen"/>
    
    <script type="text/javascript"src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript"src="js/jquery.tinyscrollbar.min.js"></script>
    <script type="text/javascript">$(document).ready(function(){
            $('#scrollbar1').tinyscrollbar();    
        });
    </script>    

    <style type="text/css" >#scrollbar1 {width:520px;margin:20px 0 10px; }#scrollbar1 .viewport {width:500px;height:200px;overflow:hidden;position:relative; }#scrollbar1 .overview {list-style:none;position:absolute;left:0;top:0;padding:0;margin:0; }#scrollbar1 .scrollbar{background:transparent url(../images/bg-scrollbar-track-y.png) no-repeat 0 0;position:relative;background-position:0 0;float:right;width:15px; }#scrollbar1 .track {background:transparent url(../images/bg-scrollbar-trackend-y.png) no-repeat 0 100%;height:100%;width:13px;position:relative;padding:0 1px; }#scrollbar1 .thumb {background:transparent url(../images/bg-scrollbar-thumb-y.png) no-repeat 50% 100%;height:20px;width:25px;cursor:pointer;overflow:hidden;position:absolute;top:0;left:-5px; }#scrollbar1 .thumb .end {background:transparent url(../images/bg-scrollbar-thumb-y.png) no-repeat 50% 0;overflow:hidden;height:5px;width:25px; }#scrollbar1 .disable {display:none; }.noSelect {user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none; }
    </style>
        
</head>
<body>
    <div id="scrollbar1">
        <div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
        <div class="viewport">
             <div class="overview">这里放内容  转载请注明来源: http://www.cnblogs.com/wangtongphp/archive/2013/05/27/3101321.html      
            </div>
        </div>
    </div>    
</body>
</html>

免责声明:文章转载自《自定义滚动条样式jquery.tinyscrollbar.min.js 插件》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇fetch 基本使用(使用fetch、axios来替代ajax)我的Python之路:浏览器模拟下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

CSS定位

css定位css有三种基本的定位机制:普通流,浮动和绝对定位。css中position属性static,relative,absolute,fixed      position:relative相对定位会按照元素的原始位置对该元素进行移动      position:absolute绝对定位,元素可以放置到页面上的任何位置,后面加上left,top等值 ...

CSS的position(位置)

position: 位置,absolute绝对位置,相对于浏览器边界的位置;relative相对位置,相对于它本应该出现的位置。fixed:固定位置,它不会随着滚动。 设置好position之后,就可以用top/ right /bottom /left这四个样式。 position的四个属性值: relative absolute fixed stati...

零拷贝(Zero-copy)及其应用详解

传统的数据传输方法在互联网时代,从某台机器将一份数据(比如一个文件)通过网络传输到另外一台机器,是再平常不过的事情了。如果按照一般的思路,用Java语言来描述发送端的逻辑,大致如下: Socket socket = new Socket(HOST, PORT); InputStream inputStream = new FileInputStream(F...

android spinner学习

   用法 1 :以资源方式,静态展示 Spinner 选项 1.     在资源文件 (strings.xml) 中,增加:          < string name = "spin_prompt" > 请选择城市 </ string >          < string-array name = "cities" &...

js-实现鼠标滑轮滚动实现换页

html页面: 1 <!--首页一--> 2 <div id="nav_div1"><div class="nav_size"></div></div> 3 4 <!--首页二--> 5 <div id="nav_div2"></div> 6 7 <!...

在WPF中如何使用RelativeSource绑定

在WPF绑定的时候,指定绑定源时,有一种办法是使用RelativeSource。 这种办法的意思是指当前元素和绑定源的位置关系。 第一种关系: Self 举一个最简单的例子:在一个StackPanel中,有一个TextBlock。 <TextBlock FontSize="18" FontWeight="Bold" Margin="10"...