why jquery .height() get a different result on chrome?

后端 未结 3 943
情深已故
情深已故 2021-01-12 13:11

This is how chrome show the width and height of the div :

\"enter

which is cor

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 13:28

    Use outerHeight() to get the height with paddings. Use outerHeight(true) to get the height with paddings + margins.

    Here's a link to the documentation.

提交回复
热议问题