`
javaliwei
  • 浏览: 13904 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

$(document).width() get different result between Chrome/FF and IE

阅读更多
When the web page is too long so that scrollbar shows up, $(document).width() will show different result between Chrome/FF and IE.
Chrome/FF will get the width without scrollbar's width, but IE will take  the scrollbar as one part of document.

If we want to calculate the absolute position of any element, it may be helpful.
1
5
分享到:
评论
Global site tag (gtag.js) - Google Analytics