<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
.top {top:0px; height:28px; width:100%; position:fixed; background:#EBEBEB; border-bottom:1px solid #000000; text-align:center;}
</style>
<title>title</title>
</head>
<body>
<div class="top">I am on the top of the body!!! 在最顶层
</div>
<script>
for (var i=0;i<100;i++ )
{
document.writeln(i+"<br />");
}
</script>
</body>
</html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
.top {top:0px; height:28px; width:100%; position:fixed; background:#EBEBEB; border-bottom:1px solid #000000; text-align:center;}
</style>
<title>title</title>
</head>
<body>
<div class="top">I am on the top of the body!!! 在最顶层
</div>
<script>
for (var i=0;i<100;i++ )
{
document.writeln(i+"<br />");
}
</script>
</body>
</html>