lipengyu1573 发表于 2014-05-03 17:13

php页面刷新后自动定位到页面底部

现在有一个问题搞不定,求助各位,一个页面如何在刷新的时候仍然能够定位到页面底部显示?
现在的代码是这样的
<html>
<head>
<script>
function scroller()
{
window.location.hash = "bottom";
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- <meta http-equiv="refresh" content="5 ; url=./content.php"> -->
<!-- <meta http-equiv="refresh" content="5"> -->
</head>


<body onload="scroller()" >
<a name="bottom"></a>
HTML
</body>
</html>
新打开时可以定位到底部但是刷新的话就会丢失定位,该怎么搞?
页: [1]
查看完整版本: php页面刷新后自动定位到页面底部