The outerHeight jquery () method and the like

 

Related methods:

  • width () - Set or returns an element width
  • height () - Set or returns an element height
  • innerWidth () - returns the width of the element (comprising padding)
  • innerHeight () - returns the height of the element (comprising padding)
  • outerWidth () - returns the width of the element (comprising padding and border)

$(selector).outerHeight(includeMargin)

  • to true  - contains margin.

Guess you like

Origin www.cnblogs.com/webcyh/p/11279761.html