jQuery .height() problem with chrome

后端 未结 6 1116
离开以前
离开以前 2020-12-10 02:37

I\'ve been using jQuery Height function. But there was a problem in getting the correct height of my div element. This div element\'s height is set

6条回答
  •  臣服心动
    2020-12-10 02:48

    I had the same issue, while using font from Google Fonts and it had implicitly set line-height of 1.5em, which the jQuery probably did not see. Once I explicitly wrote line-height:1.5em to my CSS reset (or website font setting), it was OK.

提交回复
热议问题