Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在用着
$('html, body').animate({'scrollTop':target});
动画很好,但是当用户尝试滚动页面时会“摇晃”几秒钟,然后才让用户再次滚动。
我真的看不到任何添加到 body 或 html 标记的内容可能导致这种情况。可以肯定的是,我正在清除两者的样式,但它仍然会发生。