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