【发布时间】:2023-03-19 13:29:01
【问题描述】:
我需要一种跨浏览器绑定到浏览器原生滚动条的滚动事件的方式。
$("html, body") 似乎适用于 firefox,而 $(window) 似乎适用于 IE。
有没有比试错更好的方法来使用正确的版本?如果可能,我还想检测移动滚动。
【问题讨论】:
-
$(window).scroll() 适用于所有浏览器。我只是tried this out myself
标签: jquery mobile cross-browser scroll