<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
* {
padding: 0;
margin: 0;
}
body{
background-color:#F0E9D8;
}
#wrap {
margin: 0px auto;
width: 80%;
background-color:#FFF;
}
#left {
float:left;
width:20%;
height:500px;
border:2px solid #0F0;
margin-top:10px;
margin-left:10px;
}
#right{
float:right;
width:35%;
height:600px;
border:2px solid #00F;
margin-top:10px;
margin-right:10px;
}
#center{
float:left;
width:40%;
height:800px;
margin-top:10px;
margin-bottom:50px;
margin-right:5px;
margin-left:5px;
border:2px solid #300;
}
#bottom{
clear:both;
margin:0px auto;
width:90%;
height:30px;
border:2px solid #099;
}
#ad{
position:fixed;
border:#999 solid 2px;
width:120px;
height:200px;
right:0px;
top:160px;
background-image:url(200912317295935977803.jpg);
}
</style>
</head>
<body>
<div id="wrap">
<div id="left"> </div>
<div id="center"> </div>
<div id="right"> </div>
<div id="bottom"> </div>
</div>
<div id="ad"></div>
</body>
</html>
CSS 布局实现
最新推荐文章于 2024-09-12 15:53:16 发布