效果:
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>框架实现</title>
<style type="text/css">
body{ margin:0; }
.cl{ clear: both; display: block;}
.blueBg,.list1 div,.list2 div,.zyxx .zyxx_right div{ background: blue; }
.redBg{ background: red; }
.w1000{ width: 1000px; margin:0 auto; margin-top: 10px; }
.header{ height: 80px; }
.bigPic .bigPic_left{ height: 200px; width: 750px; float: left;}
.bigPic .bigPic_right{ height: 200px; width: 240px; margin-left: 10px;float: left; }
.list1 div{ float: left; width: 240px; margin:0 5px; height: 100px; }
.list2 div{ float: left; width: 240px; margin:0 5px; height: 150px; }
.zyxx .zyxx_left{ width: 500px; height: 300px; float: left; }
.zyxx .zyxx_right{float: left; width: 490px;margin-left: 10px;}
.zyxx .zyxx_right div{ float: left; width: 235px; margin:5px 5px; height: 140px; }
.btnTop{ width: 40px; height: 80px; position: fixed; bottom: 300px; right: 5px; }
</style>
</head>
<body>
<div class="header w1000 blueBg"></div>
<div class="bigPic w1000">
<div class="bigPic_left redBg"></div>
<div class="bigPic_right blueBg"></div>
<span class="cl"></span>
</div>
<div class="list1 w1000">
<div></div>
<div></div>
<div></div>
<div></div>
<span class="cl"></span>
</div>
<div class="list2 w1000 ">
<div></div>
<div></div>
<div></div>
<div></div>
<span class="cl"></span>
</div>
<div class="zyxx w1000 ">
<div class="zyxx_left blueBg"></div>
<div class="zyxx_right">
<div></div>
<div></div>
<div></div>
<div></div>
<span class="cl"></span>
</div>
<span class="cl"></span>
</div>
<div class="btnTop blueBg"></div>
</body>
</html>