我们正在使用JavaScript代码滚动到具有给定ID的div。我尝试使用
jQuery.animate({scrollTop: number})
window.scrollTo(0, number)
setTimeout(function() {window.scrollTo(0, number);}, 1000)
Run Code Online (Sandbox Code Playgroud)
我还尝试添加#element_id到url中以滚动到element_id。
这些选项均无效。有什么办法可以使其正常工作吗?
iOS:9.2.1
铬:48.0.2564.87