?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
獲取第一個(gè)匹配元素外部高度(默認(rèn)包括補(bǔ)白和邊框)。
此方法對(duì)可見(jiàn)和隱藏元素均有效。
設(shè)置為 true 時(shí),計(jì)算邊距在內(nèi)。
獲取第一段落外部高度。
<p>Hello</p><p>2nd Paragraph</p>
var p = $("p:first"); $("p:last").text( "outerHeight:" + p.outerHeight() + " , outerHeight(true):" + p.outerHeight(true) );
<p>Hello</p><p>outerHeight: 35 , outerHeight(true):55</p>