outerHeight(true) gives wrong value
问题 I want the height of a container element, including margins and paddings. When I hover over the element in Chrome development tool, I get the value that I'm looking for but when I use jQuery $('element').outerHeight(true) ; I get a much smaller value. The element contains a jQuery carousel (in a container with position:relative and items position: absolute ), could that have something to do with it? Thanks in advance 回答1: I have experience this issue several times, and the best solution,