JavaScript DOM dimension properties (height, width) vs. jQuery dimension methods

Posted by powerboy on Stack Overflow See other posts from Stack Overflow or by powerboy
Published on 2010-04-14T01:55:59Z Indexed on 2010/04/14 2:03 UTC
Read the original article Hit count: 306

Filed under:
|

Take height for example.

JQ height() <=> JS height  // WITHOUT padding, border and margin, including invisible areas

JQ innerHeight() <==> JS ??? // WITH padding, WITHOUT border and margin, including invisible areas

JQ outerHeight(false) <==> JS ??? // WITH padding and border, WITHOUT margin, including invisible areas

JQ outerHeight(true) <==> JS ??? // WITH padding, border and margin, including invisible areas

JQ ??? <=> JS offsetHeight // WITH padding and border, WITHOUT margin, NOT including invisible areas

JQ ??? <=> JS clientHeight // WITH padding, WITHOUT border and margin, NOT including invisible areas

Please help me to correct and complete the list.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery