Divided into the following types:
. Height ()
-Gets the current calculated height value of the first element in the matching element collection or sets the height value of each matching element.
The difference between-.css (' height ') and. Height () is that the latter returns a numeric value with no units, which returns a string with a full unit. It is recommended to use the. Height () method when the height of an element requires mathematical calculations.
-This method can also calculate the height of window and document.
$ (window). Height ();
$ (document). Height ();
. Innerheight ()
-Gets the current calculated height value for the first element in the matching element collection, including padding, but does not include border.
-This method returns the height of the element, including the top and bottom padding, in pixels.
-this method does not apply to the window and document object and can be replaced with. Height ().
. Outerheight ()
-Gets the current calculated height value of the first element in the collection of elements, including padding,border and selective margin. Returns a value that is represented by an integer (not containing "px"), or null if the method is called on an empty collection.
-.outerheight ([Includemargin]): Include is a Boolean value that indicates whether the margin value of the element is included in the calculation.
-this method does not apply to window and document objects, and can be replaced with. Height ().
jquery Gets the height