perfect-scrollbar
=================
Tiny but perfect jQuery scrollbar plugin
Why perfect-scrollbar?
------------------
I worked on a personal project recently, and I was trying to find the jQuery scrollbar plugin that's *perfect*. But there was no *perfect* scrollbar plugin. That's why I decided to make one.
perfect-scrollbar is very tiny but *perfect* (for me, and maybe for the most of developers) jQuery scrollbar plugin.
I hope you love this!
Demo: http://noraesae.github.com/perfect-scrollbar/
What does *perfect* mean?
---------------------
*perfect* means...
* There should be no css change on any original element.
* The scrollbar should not affect the original design layout.
* The design of the scrollbar should be (nearly) fully customizable.
* If the size of the container or the content changes, the scrollbar size and position should be able to change.
Then perfect-scrollbar is really *perfect*?
-------------------------------------------
Yes! the only thing that's not *perfect* is my English.
* perfect-scrollbar has some requirements, but doesn't change or add any style on original elements.
* perfect-scrollbar is designed not to have width or height. It's fixed on the right and bottom side of the container.
* You can change nearly all css styles of the scrollbar. The scrollbar design has no dependency on scripts.
* perfect-scrollbar support 'update' function. Whenever you need to update the size or position of the scrollbar, just update.
* Additionally, perfect-scrollbar do use 'scrollTop' and 'scrollLeft', not absolute position or something messy.
It's cool, isn't it?
Install
-------
You can download the latest stable version with download links in [Github Page](http://noraesae.github.io/perfect-scrollbar/). You also can find all releases in [Releases](https://github.com/noraesae/perfect-scrollbar/releases) page.
If you want to use the development version of the plugin, use the source files which are not minified. They're in the `src` directory. The development version may be unstable, but some known bugs can be fixed.
```
git clone https://github.com/noraesae/perfect-scrollbar.git
cd perfect-scrollbar/src
```
You can use [Bower](http://bower.io/) to install the plugin. The plugin is registered as `perfect-scrollbar`.
```
bower install perfect-scrollbar
```
Requirements
------------
To make this plugin *perfect*, some requirements were not avoidable. But they're all very trivial and there's nothing to worry about.
* the container must have a 'position' css style.
* the container must have an 'overflow:hidden' css style.
* the scrollbar's position must be 'absolute'.
* the scrollbar-x must have a 'bottom' css style, and the scrollbar-y must have a 'right' css style.
The requirement below is for perfect-scrollbar <= 0.3.4
* there must be the *one* content element(like div) for the container.
Optional parameters
-------------------
perfect-scrollbar supports optional parameters.
### wheelSpeed
The scroll speed applied to mousewheel event.
**Default: 10**
### wheelPropagation
If this option is true, when the scroll reach the end of the side, mousewheel event will be propagated to parent element.
**Default: false**
### minScrollbarLength
When set to an integer value, the thumb part of the scrollbar will not shrink below that number of pixels.
**Default: null**
### useBothWheelAxes
When set to true, and only one (vertical or horizontal) scrollbar is visible then both vertical and horizontal scrolling will affect the scrollbar.
**Default: false**
### useKeyboard
When set to true, the scroll works with arrow keys on the keyboard. The element is scrolled only when the mouse cursor hovers the element.
**Default: true**
### suppressScrollX
When set to true, the scroll bar in X axis will not be available, regardless of the content width.
**Default: false**
### suppressScrollY
When set to true, the scroll bar in Y axis will not be available, regardless of the content height.
**Default: false**
### scrollXMarginOffset
The number of pixels the content width can surpass the container width without enabling the X axis scroll bar. Allows some "wiggle room" or "offset break", so that X axis scroll bar is not enabled just because of a few pixels.
**Default: 0**
### scrollYMarginOffset
The number of pixels the content height can surpass the container height without enabling the Y axis scroll bar. Allows some "wiggle room" or "offset break", so that Y axis scroll bar is not enabled just because of a few pixels.
**Default: 0**
### includePadding
When set to true, it uses `innerWidth` and `innerHeight` for the container size instead of `width` and `height`. When your container element has non-zero padding and the scrollbar layout looks weird, this option can be helpful.
**Default: false**
How to Use
----------
```html
<style>
#Demo { position: 'relative'; }
</style>
<div id='Demo'>
<div>
...
</div>
</div>
```
When the html document is like above, just use like this:
```javascript
$('#Demo').perfectScrollbar();
```
With optional parameters:
```javascript
$("#Demo").perfectScrollbar({
wheelSpeed: 20,
wheelPropagation: true,
minScrollbarLength: 20
})
```
If the size of your container or content changes:
```javascript
$('#Demo').perfectScrollbar('update');
```
If you want to destory the scrollbar:
```javascript
$('#Demo').perfectScrollbar('destroy');
```
If you want to scroll to somewhere, just use scroll-top css and update.
```javascript
$("#Demo").scrollTop(0);
$("#Demo").perfectScrollbar('update');
```
Also you can get the informations about how to use the plugin from example codes in the `examples` directory of the source tree.
Very helpful friends
--------------------
perfect-scrollbar supports [jquery-mousewheel](https://github.com/brandonaaron/jquery-mousewheel). If you want to use mousewheel features, please include jquery-mousewheel before using perfect-scrollbar.
If you want to make this plugin's update function more responsive, [jquery-resize](https://github.com/cowboy/jquery-resize) can be helpful.
Contribution
------------
#### Please read [Contributing](https://github.com/noraesae/perfect-scrollbar/wiki/Contributing) in the wiki before making any contibution.
I *really* welcome contributions! Please feel free to fork and issue pull requests when...
* You have a very nice idea to improve this plugin!
* You found a bug!
* You're good at English and can help my bad English!
For IE problems, please refer to [IE Support](https://github.com/noraesae/perfect-scrollbar#ie-support)
IE Support
----------
This plugin supports old IE browsers in the **minimum** range. The plugin is tested in IEs >= IE6 and works(not well, but works).
**But the project will not accept the patches to fix IE problems in IE 6/7/8.**
From jQuery 2.0, jQuery also will not support IE 6/7/8. I also think that supporting old browsers really breaks the web development conventions.
When old IEs should be supported, please fork the project and make patches personally.
Helpdesk
--------
If you have any idea to improve this project or any problem using this, please feel free to upload an [issue](https://github.com/noraesae/perfect-scrollbar/issues).
License
-------
The MIT License (MIT) Copyright (c) 2012, 2014 Hyeonje Alex Jun and other contributors.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
没有合适的资源?快使用搜索试试~ 我知道了~
买来的e-mobile6.5
共1610个文件
png:451个
cache:172个
class:144个
5星 · 超过95%的资源 需积分: 10 60 下载量 192 浏览量
2018-11-07
11:51:21
上传
评论 5
收藏 41.59MB ZIP 举报
温馨提示
买来的e-mobile6.5配置上不会分享给大家了。 希望会用的顺便告知下安装流程。 另有e-ecology8.1和e-massage4.02和e-bridge 文件过大无法上传:请到https://bbs.lonhun.cc 申请下载
资源推荐
资源详情
资源评论
收起资源包目录
买来的e-mobile6.5 (1610个子文件)
configure.ac 27KB
Makefile.am 1KB
71011.bat 721B
75450.bat 496B
stop.bat 39B
start.bat 34B
config.c 40KB
mod_caucho.c 34KB
stream.c 33KB
mod_caucho.c 32KB
jni_os.c 7KB
jni_jvmti.c 5KB
jni_jvmdi.c 4KB
memory.c 3KB
_0mobile_7plugin_14js_17jquery_24jquery-ui_34js@1.cache 206KB
_0mobile_7plugin_141_16js_19jquery-1_286_302_32min_36js@1.cache 90KB
_0wui_4common_11jquery_18plugin_25zTree_31js_34jquery-1_434_454_47min_51js@1.cache 77KB
_0mobile_7plugin_14js_17jquery_24jquery_31js@1.cache 56KB
_0mobile_7plugin_14css_18cupertino_28jquery-ui_38css@1.cache 34KB
_0css_4Weaver_11css@1.cache 28KB
_0wui_4common_11jquery_18plugin_25zTree_31js_34jquery_41ztree_47core-3_541_56min_60js@1.cache 26KB
_0wui_4common_11jquery_18plugin_25zTree_31js_34jquery_41ztree_47core_52min_56js@1.cache 24KB
_0mobile_7plugin_1411_17js_20blog_25js@1.cache 20KB
_0messager_9usericon_18loginid20120717134303_40jpg@1.cache 15KB
_0mobile_7plugin_1411_17js_20mylibs_27asyncbox_36AsyncBox_45v1_484_50js@1.cache 12KB
_0mobile_7plugin_141_16js_19asyncbox_28AsyncBox_37v1_404_42js@1.cache 12KB
_0wui_4common_11jquery_18plugin_25zTree_31css_35zTreeStyle_46img_50zTreeStandard_64png@1.cache 11KB
_0messager_9usericon_18loginid20120716183708_40jpg@1.cache 11KB
_0wui_4common_11jquery_18plugin_25zTree_31js_34jquery_41ztree_47excheck-3_571_59min_63js@1.cache 11KB
_0wui_4common_11jquery_18plugin_25zTree_31js_34jquery_41ztree_47excheck_55min_59js@1.cache 9KB
_0mobile_7plugin_1411_17css_21blog_26css@1.cache 8KB
_0mobile_7plugin_1411_17js_20mylibs_27asyncbox_36skins_42ZCMS_47asyncbox_56css@1.cache 8KB
_0mobile_7plugin_141_16js_19asyncbox_28skins_34ZCMS_39asyncbox_48css@1.cache 8KB
_0mobile_7plugin_1411_17js_20mylibs_27showLoading_39jquery_46showLoading_58js@1.cache 7KB
_0mobile_7plugin_1411_17js_20mylibs_27asyncbox_36skins_42ZCMS_47images_54asyncbox_63bg_66png@1.cache 7KB
_0mobile_7plugin_141_16js_19asyncbox_28skins_34ZCMS_39images_46asyncbox_55bg_58png@1.cache 7KB
_0mobile_7plugin_141_16js_19workflow_28js@1.cache 6KB
_0wui_4common_11jquery_18plugin_25zTree_31css_35zTreeStyle_46zTreeStyle_57css@1.cache 6KB
_0wui_4common_11jquery_18plugin_25zTree_31css_35zTreeStyle_46img_50zTreeStandard_64gif@1.cache 5KB
_0wui_4common_11jquery_18plugin_25jQuery_32modalDialog_44js@1.cache 5KB
_0messager_9usericon_18loginid20120529095347_40jpg@1.cache 4KB
_0mobile_7plugin_1411_17js_20mylibs_27asyncbox_36skins_42ZCMS_47images_54asynctips_64bg_67gif@1.cache 4KB
_0mobile_7plugin_141_16js_19asyncbox_28skins_34ZCMS_39images_46asynctips_56bg_59gif@1.cache 4KB
_0messager_9usericon_18loginid20120529094043_40jpg@1.cache 4KB
_0mobile_7plugin_14browser_22css_26Weaver_33css@1.cache 4KB
_0messager_9usericon_18loginid20120423095455_40jpg@1.cache 4KB
_0mobile_7plugin_1411_17js_20script_27js@1.cache 3KB
_0messager_9usericon_18loginid20121010164542_40jpg@1.cache 2KB
_0mobile_7plugin_1411_17images_24ajax-loader_36gif@1.cache 2KB
_0messager_9usericon_18loginid20120727112940_40jpg@1.cache 2KB
_0messager_9usericon_18loginid20121018134013_40jpg@1.cache 2KB
_0messager_9usericon_18loginid20120525160140_40jpg@1.cache 2KB
_0mobile_7plugin_14browser_22images_29browser_37png@1.cache 2KB
_0mobile_7plugin_14css_18mobile_25css@1.cache 2KB
_0mobile_7plugin_14browser_22js_25browserUtil_37js@1.cache 2KB
_0mobile_7plugin_14browser_22images_29bglight_37gif@1.cache 2KB
_0mobile_7plugin_14browser_22images_29bgdark_36gif@1.cache 2KB
_0mobile_7plugin_1411_17images_24blog_29new_33png@1.cache 2KB
_0mobile_7plugin_1411_17images_24rightArrow_35png@1.cache 2KB
_0images_7loading2_16gif@1.cache 2KB
_0messager_9images_16icon_21w_23jpg@1.cache 2KB
_0mobile_7plugin_141_16images_23itemnavimg_34png@1.cache 2KB
_0mobile_7plugin_141_16images_23iconemp_31gif@1.cache 2KB
_0messager_9images_16icon_21m_23jpg@1.cache 1KB
_0mobile_7plugin_14browser_22images_29bg1_33gif@1.cache 1KB
_0mobile_7plugin_141_16images_23icon_28resource_37flat_42gif@1.cache 1KB
_0mobile_7plugin_141_16images_23imgPersonHead_37gif@1.cache 1KB
_0mobile_7plugin_14images_21loading_29bg_32png@1.cache 1KB
_0mobile_7plugin_141_16js_19asyncbox_28skins_34ZCMS_39images_46wait_51gif@1.cache 1KB
_0mobile_7plugin_141_16js_19asyncbox_28skins_34ZCMS_39images_46wait_51bg_54gif@1.cache 1KB
_0mobile_7plugin_14browser_22images_29arrow_35d_37gif@1.cache 1KB
_0mobile_7plugin_1411_17images_24blog_29stateOk_37png@1.cache 1KB
_0mobile_7plugin_1411_17images_24blog_29stateRe_37png@1.cache 1KB
_0images_7treeimages_18global_25gif@1.cache 1KB
_0mobile_7plugin_1411_17images_24blog_29stateNo_37png@1.cache 1KB
_0mobile_7plugin_145_16images_23btn_27tab_31today_37png@1.cache 1019B
_0mobile_7plugin_1411_17images_24blog_29stateAppend_41png@1.cache 1005B
_0mobile_7plugin_145_16images_23btn_27tab_31month_37png@1.cache 945B
_0wui_4common_11jquery_18plugin_25zTree_31css_35zTreeStyle_46img_50loading_58gif@1.cache 922B
_0mobile_7plugin_145_16images_23btn_27tab_31date_36png@1.cache 920B
_0mobile_7plugin_145_16images_23btn_27yearsleft_37png@1.cache 898B
_0mobile_7plugin_145_16images_23btn_27monthright_38png@1.cache 896B
_0mobile_7plugin_145_16images_23btn_27yearsright_38png@1.cache 892B
_0images_7treeimages_18subCopany_28Colse_34gif@1.cache 889B
_0images_7treeimages_18Home_23gif@1.cache 882B
_0mobile_7plugin_1411_17js_20mylibs_27asyncbox_36skins_42ZCMS_47images_54asyncbox_63title_69bottom_76png@1.cache 854B
_0mobile_7plugin_145_16images_23btn_27monthleft_37png@1.cache 852B
_0mobile_7plugin_141_16js_19asyncbox_28skins_34ZCMS_39images_46asyncbox_55title_61bottom_68png@1.cache 846B
_0mobile_7plugin_14browser_22images_29arrow_35u_37gif@1.cache 828B
_0mobile_7plugin_14css_18cupertino_28images_35ui-bg_41diagonals-thick_5790_60eeeeee_6740x40_73png@1.cache 807B
_0mobile_7plugin_14browser_22images_29arrow_35right_41gif@1.cache 782B
_0mobile_7plugin_14browser_22images_29arrow_35left_40gif@1.cache 782B
_0mobile_7plugin_14browser_22images_29arrow_35left_40all_44gif@1.cache 771B
_0mobile_7plugin_14browser_22images_29arrow_35right_41all_45gif@1.cache 768B
_0mobile_7plugin_145_16images_23btn_27selecteddate_40png@1.cache 735B
_0mobile_7plugin_145_16images_23btn_27currentdate_39png@1.cache 712B
_0mobile_7plugin_145_16images_23bg_26title_32png@1.cache 703B
_0mobile_7plugin_145_16images_23bg_26homelist_35png@1.cache 695B
_0mobile_7plugin_145_16images_23icon_28liststyle_38png@1.cache 694B
_0mobile_7plugin_145_16images_23bg_26tabbg_32png@1.cache 693B
共 1610 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
- qsd_uu2019-03-15好,很好,点赞,我会安装,我可以教您!
- a9343438242019-08-04很好,能用,就是重启之后提示错误: 系统未能正常启动,请联系管理员(128) 。有遇到过这种的大神吗
龙魂集团
- 粉丝: 8
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功