scrollTop() returns 0 in Firefox, but not in Chrome

前端 未结 4 507
天涯浪人
天涯浪人 2020-12-15 16:17

Not sure if there\'s another question regarding this, if so I apologize and please don\'t release the hounds.

Using the html5 doctype and doing a quick console.log o

4条回答
  •  攒了一身酷
    2020-12-15 16:30

    After some frustration with IE9 in quirks mode, I've found the that $('body').scrollTop() works reliably in IE9, Chrome 32 and Firefox 26.

提交回复
热议问题