|
||||||||||||||||
|
||||||||||||||||
width()
version 1.0 以降
解説最初にマッチした要素の、現在の横幅を計算し、ピクセル単位で返します。 概念図
戻り値
関連例
テーブルの最後の列を除去し、横幅を表示します。 $("#test_result td:last-child").remove(); // テーブルの最後の列を除去 alert($("#test_result table").width() + " pixel");
|
|
|||||||||||||||
© 2007-2011 by いけまさ. All rights Reserved. |