首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > A jQuery plugin providing cross-browser vertical centering

A jQuery plugin providing cross-browser vertical centering

  • 资源大小:3.63 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Description vAlignMiddle is a jQuery plugin providing cross-browser vertical centering. It is intended primarily for circumstances where the height of elements to be vertically centered is not known at design-time. For example, a menu bar where anchor elements are to be vertically centered in a list and some, but not all, have wrapping lines of text (see demo download). ## Usage ## jQuery("element(s) to be centered").vAlignMiddle(options); ## Options ## An Object consisting of two optional parameters: 1. addToTop: a Number (may be negative) used to move the centered item up or down as needed. 2. debug: a Boolean that toggles the display of element height information printed to the Firebug console (or other solution supporting console.log()). ## Demo ## See demo under "Featured Downloads" to the right of this page. ## Example ## ```

文 件 列 表

demo.html
js
jQuery.vAlignMiddle.js
jQuery.vAlignMiddle.min.js

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.178264s