height()


version 1.0 以降

解説

最初にマッチした要素の、現在の高さを計算し、ピクセル単位で返します。

概念図

jquery dimensions height

戻り値

  • 現在の要素の高さ (ピクセル)

関連


テーブルの最後の行を除去し、高さを表示します。

$("#test_result tr:last").remove();    // テーブルの最後の行を除去

alert($("#test_result table").height() + " pixel");

1jQueryhttp://jquery.com/
2prototype.jshttp://www.prototypejs.org/
3Exthttp://extjs.com/
4script.aculo.ushttp://script.aculo.us/
5YUIhttp://developer.yahoo.com/yui/