使用方法:
首先下载插件:http://manos.malihu.gr/jquery-custom-content-scroller/
一、HTML
引入以下文件
- 1
- 2
- 3
- 1
- 2
- 3
二、CSS
首先必须要有滚动条出现,给DIV限定高度,并指定overflow样式为auto,
这样当内容超出后就会自动出现滚动条了
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 1
- 2
- 3
- 4
- 5
- 6
- 7
三、初始化HTML
- 1
- 2
- 3
- 1
- 2
- 3
四、初始化JS
- 1
- 2
- 3
- 4
- 5
- 1
- 2
- 3
- 4
- 5
效果演示:jquery_scroller
官网:http://manos.malihu.gr/jquery-custom-content-scroller/
转自:http://blog.csdn.net/itmyhome1990/article/details/50330943