IE8 alternative to window.scrollY?

前端 未结 8 908
一向
一向 2020-11-29 06:02

I\'m trying to determine how many pixels down I\'ve scrolled using window.scrollY. But this isn\'t supported in IE8. What is the safe, cross-browser alternative

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 06:07

    If you're using jQuery, I used $(window).scrollTop() to get the Y position in IE 8. It seemed to work.

提交回复
热议问题