<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三列布局</title>
<style type="text/css">
body{ margin:0; padding:0; font-size:30px; font-weight:bold}
div{ line-height:50px;}
.top{height:100px;background:#ccc;}
.head{width:200px; height:100px;background:black;margin:0 auto}
.meddile{ width:500px; height:400px; background:#ddd;margin:10px auto}
.left{width:200px;height:400px;background:blue;float:left}
.right{width:300px;height:400px;background:#dac;float:right}
.sob_1{width:100px;height:400px;background:green;float:left}
.sob_2{width:200px;height:400px;background:black;float:right}
.bettom{width:500px;height:200px;background:#FCC;margin:10px auto; border:2px solid red;}
</style>
</head>
<body>
<div class="top">
<div class="head"></div></div>
<div class="meddile">
<div class="left"></div>
<div class="right">
<div class="sob_1"></div>
<div class="sob_2"></div>
</div>
</div>
<div class="bettom">bettom</div>
</body>
</html>
- 1 回答
- 0 关注
- 1229 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消