800x600及以上的分辨率满屏显示,分辨率小于800时,浏览器窗口底部自动显示滚动条。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>100%</title>
<style type="text/css">
<!--
body {
font-family: MingLiU,PMingLiU;
font-size: 11px;
margin: 0px;
padding: 0px;
}
.top_left {
background-color: #993300;
margin: 0px;
padding: 0px;
float: left;
height: 100px;
width: 770px;
position: relative;
}
.top_right {
background-color: #993366;
margin: 0px;
padding: 0px;
float: right;
height: 100px;
width: 250px;
position: absolute;
right: 0px;
}
.top {
width: 100%;
margin: 0px;
padding: 0px;
background-color: #999999;
height:20px;
display: table;
position: relative;
}
-->
</style>
</head>
<body>
<div class="top" >
<div class="top_left">此处显示 class "top" 的内容</div>
<div class="top_right">此处显示 class "top_right" 的内容</div>
<div></div>
</div>
</body>
</html>