標準瀏覽器下: 
height:高度 
innerHeight:高度+補白 
outerHeight:高度+補白+邊框,參數為true時:高度+補白+邊框+邊距 
html代碼: 
復制代碼 代碼如下:
 
<div>jjjjj</div> 
復制代碼 代碼如下:
 
alert($("#test").height()); 
alert($("#test").innerHeight()); 
alert($("#test").outerHeight()); 
alert($("#test").outerHeight(true)); 
復制代碼 代碼如下:
 
<div>jjjjj</div> 
復制代碼 代碼如下:
 
alert($("#test").height()); 
alert($("#test").innerHeight()); 
alert($("#test").outerHeight()); 
alert($("#test").outerHeight(true)); 
[html] 
結果: 
在ie中的結果:17px,37px,41px,61px 
在ff中的結果:41px,61px,65px,85px 
html代碼: 
[code] 
<div>jjjjj</div> 
復制代碼 代碼如下:
 
alert($("#test").height()); 
alert($("#test").innerHeight()); 
alert($("#test").outerHeight()); 
alert($("#test").outerHeight(true)); 
復制代碼 代碼如下:
 
<div>jjjjj</div> 
復制代碼 代碼如下:
 
alert($("#test").height()); 
alert($("#test").innerHeight()); 
alert($("#test").outerHeight()); 
alert($("#test").outerHeight(true)); 
新聞熱點
疑難解答
圖片精選