jScrollHorizontalPane

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-14 09:44:31

软件介绍

jScrollHorizontalPane is a plugin based off of Kevin Luck’s jScrollPane which override’s the browsers default horizontal on any block level element with an overflow:auto style. It’s built on top of the jQuery library and uses both the dimensions plugin and the mouse wheel plugin. Provided with the download of the plugin there is a default jScrollHorizontalPane.css which can be used as a basis to edit the stylings on the scroll bar.

This plugin is completely cross browser, and also provides the ability to resize gracefully when the reset option is set to true. Additionally, intervals can be set by adding a class of “scroll-interval” which automatically adds dash’s to the track and provides automatic snap-to on the elements.

Just include the following files in the head of your page:

* jQuery
* the dimensions plugin
* the mouse wheel plugin
* jScrollHorizontalPane.js (or the compressed)
* jScrollHorizontalPane.css

Then you can use any query selector to select the elements you would like to apply jScrollHorizontalPane to and then initialise it. The following code runs when the document is ready and finds any element with a class of “scroll-pane” and then calls jScrollHorizontalPane on them.

$(function(){

$('.scroll-pane').jScrollHorizontalPane();

});

jScrollHorizontalPane also takes the following options as parameters to customize the functionality:

scrollbarHeight - The height of the generated scrollbar in pixels
scrollbarMargin - The amount of space to leave on the side of the scrollbar in pixels
wheelSpeed - The speed the pane will scroll in response to the mouse wheel in pixels
showArrows - Whether to display arrows for the user to scroll with
arrowSize - The height of the arrow buttons if showArrows=true
animateTo - Whether to animate when calling scrollTo and scrollBy
dragMinWidth - The minimum width to allow the drag bar to be
dragMaxWidth - The maximum width to allow the drag bar to be
animateInterval - The interval in milliseconds to update an animating scrollHorizontalPane (default 100)
animateStep - The amount to divide the remaining scroll distance by when animating (default 3)
maintainPosition- Whether you want the contents of the scroll pane to maintain it’s position when you re-initialise it - so it doesn’t scroll as you add more content (default true)
resize - Whether or not to have resizing turned on or not.
minimumWidth - The minimum width to allow the jScrollHorizontalPane to be resized to. Only effective when resize is on.
reset - When set to ‘true’ all the global properties will be reset. This is useful for dynamic refreshes on the page.

本文地址:https://codercto.com/soft/d/23347.html

任正非传

任正非传

孙力科 / 浙江人民出版社 / 2017-5-2 / 39.80

编辑推荐: 超权威、超丰富、超真实的任正非传记 亲述任正非跌宕起伏、传奇精彩的一生 ◆知名财经作家孙力科,历时十年,数十次深入华为,采访华为和任正非历程中各个关键人物,几度增删,创作成此书 ◆全书展现了任正非从出生至今70多年的人生画卷,从入伍到退役进国企,从艰难创业到开拓海外市场,囊括其人生道路上各个关键点,时间跨度之长,内容之丰富,前所未有 ◆迄今为止,任正非一生......一起来看看 《任正非传》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具