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

前端 未结 4 508
天涯浪人
天涯浪人 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:40

    $(window).scrollTop() works as expected in both Firefox and Chrome.

    For verification run the following jsfiddle in both chrome and firefox: http://jsfiddle.net/RBBw5/6/

提交回复
热议问题