批改状态:未批改
老师批语:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta charset="utf-8" />
<style>
.nav,.footer{
width: 100%;
height: 60px;
}
.content{
width: 1000px;
height: 100%;
background-color: lightgrey;
text-align: center;
line-height: 60px;
margin: auto;
}
.container {
width: 1000px;
background-color: yellow;
margin: auto;
overflow: hidden;
}
.wrap{
width: 100%;
height:600px;
background-color: lightpink;
float: left;
}
.main{
min-height: 600px;
margin-left: 200px;
margin-left: 200px;
margin: 0 200px;
text-align:center;
}
.left{
width:200px;
min-height: 600px;
background-color: lightgreen;
text-align: center;
float: left;
margin-left: -100%;
}
.right{
width:200px;
min-height: 600px;
background-color: lightblue;
text-align: center;
float: left;
margin-left: -200px;
}
</style>
<title>双飞翼布局</title>
</head>
<body>
<div class="nav">
<div class="content" >头部</div>
</div>
<div class="container">
<div class="wrap">
<div class="main">中间</div>
</div>
<div class="left">左</div>
<div class="right">右</div>
<div class="footer" style="clear: both;">
<div class="content" >底部</div>
</div>
</div>
</body>
</html>点击 "运行实例" 按钮查看在线实例
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号