Home >Web Front-end >JS Tutorial >Introduction to the use of Jquery's outerHeight method_jquery
Gets the outer height of the first matching element (default includes padding and border).
This method works for both visible and hidden elements.
outerHeight(options)
optionsBoolean default value: 'false'
When set to true, the margins are included.
Description:
Get the outer height of the first paragraph.
HTML code:
Hello
2nd Paragraph
Hello
outerHeight: 35 , outerHeight(true):55