jquery.matchHeight.js - manabuyasuda/jquery-plugins GitHub Wiki

インクルード

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

デフォルト

class属性itemを対象とする場合。

$(function() {
    $('.item').matchHeight(options);
});

オプション

オプションは指定しなくてもいい場合が多い。

$(function() {
  $('.item').matchHeight({
    byRow: true, // 行を検出するか(true or false)
    property: 'height', // style属性として使用するプロパティ('height' or 'min-height')
    target: null, // (e.g. `$('.sidebar')`)
    remove: false // 
  });
});
⚠️ **GitHub.com Fallback** ⚠️