3个回答
展开全部
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Layout</title>
<style>
body {margin: 0; padding: 0;}
.Header, .Footer {height: 100px; background-color: #369;}
.Left, .Right {
position: absolute;
top: 100px;
width: 100px;
height: 300px;
background-color: pink;
}
.Left {left: 0;}
.Right {right: 0;}
.Cont {margin: 0 100px;}
.con1, .con2 {height: 150px;}
.con1 {background-color: silver;}
.con2 {background-color: slateGrey;}
</style>
</head>
<body>
<div class="Header">Header</div>
<div class="Left">Left</div>
<div class="Cont">
<div class="con1">con1</div>
<div class="con2">con2</div>
</div>
<div class="Right">Right</div>
<div class="Footer">Footer</div>
</body>
</html>
展开全部
<style>
*{margin:0px;padding:0px;}
.content{width:100%;height:500px;}
.Header{width:100%;height:100px;background:#66cc66;}
.left{float:left;width:10%;height:300px;background:#c9cddc;}
.right{float:left;width:10%;height:300px;background:#c9cddc;}
.con{float:left;width:80%;height:300px;}
.con1{width:100%;height:150px;background:#ffcccc;}
.con2{width:100%;height:150px;background:#ffcccc;}
.Footer{width:100%;height:100px;background:#ccffff;}
</style>
<div class="content">
<div class="Header"></div>
<div class="left"></div>
<div class="con">
<div class="con1"> </div>
<div class="con2"> </div>
</div>
<div class="right"></div>
<div class="Footer"></div>
</div>
*{margin:0px;padding:0px;}
.content{width:100%;height:500px;}
.Header{width:100%;height:100px;background:#66cc66;}
.left{float:left;width:10%;height:300px;background:#c9cddc;}
.right{float:left;width:10%;height:300px;background:#c9cddc;}
.con{float:left;width:80%;height:300px;}
.con1{width:100%;height:150px;background:#ffcccc;}
.con2{width:100%;height:150px;background:#ffcccc;}
.Footer{width:100%;height:100px;background:#ccffff;}
</style>
<div class="content">
<div class="Header"></div>
<div class="left"></div>
<div class="con">
<div class="con1"> </div>
<div class="con2"> </div>
</div>
<div class="right"></div>
<div class="Footer"></div>
</div>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询