求一个简单的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>
------解决方案--------------------
感觉在外面套一层div更好点。
------解决方案--------------------/*style css*/
<style type="text/css">
body{
text-align:center;
}
.wrapper{
margin:0 auto;
width:80%;
text-align:left;
}
.wrapper .header{
width:50px;
}
.wrapper .content{
overflow:hidden;
}
.wrapper .content .right{
width:68%;
float:right;
}
.wrapper .content .left{
width:20%;