control-freak-ide/Control-Freak-Documentation/jQuery/docs/entries/outerHeight.json
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

1 line
1.5 KiB
JSON

{"name":"outerHeight","type":"method","title":".outerHeight()","deprecated":null,"removed":null,"desc":"Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns a number (without \"px\") representation of the value or null if called on an empty set of elements.","categories":["css","dimensions","manipulation/style-properties","version/1.2.6"],"entries":[{"return":"Number","signatures":{"added":"1.2.6","argument":{"desc":"A Boolean indicating whether to include the element's margin in the calculation.","name":"includeMargin","optional":"true","type":"Boolean"}},"examples":{"desc":"Get the outerHeight of a paragraph.","code":"\nvar p = $( \"p:first\" );\n$( \"p:last\" ).text(\n \"outerHeight:\" + p.outerHeight() +\n \" , outerHeight( true ):\" + p.outerHeight( true ) );\n","css":"\n p {\n margin: 10px;\n padding: 5px;\n border: 2px solid #666;\n }\n","html":"\n<p>Hello</p><p></p>\n"},"longdesc":"\n <p>The top and bottom padding and border are always included in the <code>.outerHeight()</code> calculation; if the <code>includeMargin</code> argument is set to <code>true</code>, the margin (top and bottom) is also included.</p>\n <p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href=\"/height/\">.height()</a></code> instead.</p>\n <p class=\"image\">\n <img src=\"/resources/0042_04_03.png\"/>\n </p>\n "}]}