项目作者: iiiBird

项目描述 :
jQuery Equal Heights per row
高级语言: HTML
项目地址: git://github.com/iiiBird/jQuery.equalHeights.git
创建时间: 2016-12-21T08:22:39Z
项目社区:https://github.com/iiiBird/jQuery.equalHeights

开源协议:MIT License

下载


jQuery Equal Heights by row

Version 1.0.0

This plugin makes the height of all selected elements exactly equal.

Authors

iBird Rose (vk.com) & KFan (vk.com)

Manual Download - Stable Release

Download

Install

Include jquery.equalheights.js after calling jQuery.

  1. <script src="jquery.equalheights.js" type="text/javascript"></script>

Usage

  1. $(function() {
  2. $(".item").equalHeights(options);
  3. });

Options

The default options are:

  1. {
  2. innerItem: false,
  3. parent: $(this).parent(),
  4. byRow: true
  5. }

Where:

  • innerItem - Inner element that you want to set the height. type - string. (Example: innerItem: “.item_content”,)
  • parent - Parent element if a direct parent is not needed element. type - object (Example: parent: $(“.parent”),)
  • byRow - true or false to enable row detection.

more information and examples in demo

Demo and Examples

Examples

Changelog

Version 1.0.0

  • First Release