求一个简单的CSS布局
页面布局情况如下:
上(50px) 下 (左 20% 右)
要求:
布局自适应屏幕
在线等。。。
另求HTML+CSS高手
[解决办法]
<frameset rows="50,*">
<frame src=""/>
<frameset cols="20%,80%">
<frame src=""/>
<frame src=""/>
</frameset>
</frameset>
[解决办法]
<!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>layout</title>
<style type="text/css">
.container {
width: 100%;
min-height: 500px;
}
.row {
width: 100%;
overflow: hidden;
}
.col {
float:left;
}
.header {
height: 50px;
width: 100%;
background-color:#666666;
}
.menu {
width: 20%;
background-color: #999999;
height: 200px;
}
.content {
width: 80%;
background-color: #CCCCCC;
height: 200px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col header"></div>
</div>
<div class="row">
<div class="col menu"></div>
<div class="col content"></div>
</div>
</div>
</body>
</html>
float:left;
}
</style>
<div class="wrapper">
<div class="header"></div>
<div class="content">
<div class="right"></div>
<div class="left"></div>
</div>
<div class="footer"></div>
</div>
[解决办法]
<style type="text/css">
.header{height:50px;background:green}
.left{float:left;width:20%;background:yellow}
.right{float:right;width:80%;background:red}
.clear{clear:both;height:0;font-size:0;}
</style>
<div class="header">TOP</div>
<div class="container">
<div class="left">LEFT</div>
<div class="right">RIGHT</div>
<div class="clear"></div>
</div>