<script>
$(document).ready(function () {
$("#button").click(function () {
window.location.href = "page2.aspx";
$('html, body').animate({
scrollToElement ("#div").offset().top
}, 2000);
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
这个想法是你单击page1上的一个按钮,然后你被重定向到page2然后你使用jQuery滚动到一个特定的元素.