解决方案:jQuery的 scroll 事件失去滑动效果。

版权声明:转载需说明出处。 https://blog.csdn.net/en_joker/article/details/83790145

问题:当页面滚动条变化时,执行的函数:

$(window).scroll( function() { /* ...do something... */ } );

以上函数没有滑动效果。

解决:html标签、 body标签的height属性设置auto。

猜你喜欢

转载自blog.csdn.net/en_joker/article/details/83790145