The example in this article describes the usage of the outerHeight() method in jQuery. Share it with everyone for your reference. The specific analysis is as follows:
This method gets the outer height of the first matching element.
By default the outer height is the sum of height, padding and border.
If the parameter is set to true, the outer margin size will also be included in the outer width.
This method works for both visible and hidden elements.
Can be combined with outerWidth() method to learn.
Grammar structure:
Parameter list:
实例代码:
点击按钮可以显示div元素外部高度。
希望本文所述对大家的jQuery程序设计有所帮助。