用一个很简单的JS 就可以了 在头部 加上以下代码:
</head>前面
<style type="text/CSS">
body {
height: 2000px;
}
</style>
<script type="text/javascript">
onload = function ()
{
var dh = document.documentElement.scrollHeight || document.body.scrollHeight;
window.scrollTo (0, (dh - screen.availHeight) / 2);
}
</script>
发表评论
加载中~