61,112
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title></title>
<style type="text/css">
body,div,ul,li,dd,dl,dt,p{margin:0;padding:0;}
div{border:1px dashed #888;margin:10px;}
.fl{float:left;}
.clear{clear:both;}
.left{width:200px;height:420px;background:#f0c4e3;}
.right{padding-left:220px;}
.main{padding:10px;height:400px;background:#c5efcf;}
.bar{background:#eeebc6;padding:10px;}
.box{width:100px;height:100px;margin:5px;background:#efc5c5;}
</style>
</head>
<body>
<div class="left fl">left left left</div>
<div class="right">
<div class="main">
<div>
<div class="fl box">float box</div>
<div class="fl box">float box</div>
<div class="fl box">float box</div>
<div class="fl box">float box</div>
<div class="fl box">float box</div>
<div class="fl box">float box</div>
<div class="clear">clear : both</div>
</div>
<div class="bar">am I in main?</div>
</div>
</div>
</body>
</html>