jQuery日本語リファレンス

jQuery does not mean Japanese Query...

ヌー

Css/API/jQuery

outerHeight([options])

最初の要素の外部高さ(border、paddingを含む)を取得します。
オプションにmarginを指定してやることで、高さにmerginを含めることもできます。

この関数は、要素の表示/非表示状態にかかわらず機能します。
サンプル
サンプル1
div要素の外部高さを取得します。
div {
 height: 20px;
 border: 3px solid black;
 padding: 2px;
 margin: 5px;
}
$('div:first').text('outerHeight: '+$('div:first').outerHeight());
$('div:last').text('outerHeight with margin: '+$('div:last').outerHeight({margin: true}));
[フレーム]
© Copyright 2009 by semooh.jp | Design by Free CSS Templates - Thanks to Dubai Apartments

AltStyle によって変換されたページ (->オリジナル) /