<pre>
制作有路网首页
有路网首页布局框架制作
划分区域,确定div
测量各个区域的宽高
使用浮动对网页进行布局
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>有路网整体布局</title>
<link href="reset.css" rel="stylesheet">
<style type="text/css">
.top1{
height: 31px;
background-color: gray;
}
.top2{
height: 134px;
background-color: green;
}
.top3{
height: 40px;
background-color: red;
/*margin-top: 30px;*/
}
.main{
width: 1200px;
margin:0px auto;
/*position: relative;*/
}
.main_top{
width: 990px;
height: 30px;
background-color: pink;
float: left;
}
.main_left{
width: 210px;
height: 968px;
background-color: blue;
float: left;
}
.main_right{
width: 220px;
height: 937px;
background-color: blue;
float: right;
}
.d1{
float: left;
width: 750px;
height: 340px;
background-color: red;
margin:0px 10px;
}
.d2{
float: left;
width: 750px;
height: 597px;
background-color: green;
margin:0px 10px;
}
</style>
</head>
<body>
<div class="top1"></div>
<div class="top2"></div>
<div class="top3"></div>
<div class="main">
<div class="main_left"></div>
<div class="main_top"></div>
<div class="main_right"></div>
<div class="d1"></div>
<div class="d2"></div>
</div>
</body>
</html>