outerHeight(true) gives wrong value

前端 未结 10 1475
旧时难觅i
旧时难觅i 2021-01-07 18:21

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 lookin

10条回答
  •  花落未央
    2021-01-07 18:30

    Tried every single one of these solutions. Finally opened up inspector and realized my p still had a margin-top. As always thanks Normalize...

提交回复
热议问题