我设置在中间设置浮动为什么上面及下面的元素没有受浮动的影响啊?我还想练练清楚浮动呢,是不是哪里写错了
#bao{width:960px;margin:0 auto}
#shang{height:200px;background:#ccc;}
#zhong{height:800px;background:#ddd;}
#xia{height:200px;background:#369;}
.yi{width:400px;height:300px;background:#369;float:left;}
.er{width:500px;height:600px;background:red;float:right;}
</style>
</head>
<body>
<div id="bao">
<div id="shang">wwwwwww</div>
<div id="zhong">
<div class="yi">left</div>
<div class="er">right</div>
eeeeeeee</div>
<div id="xia">rrrrrrrrr</div>
</div>
</body>
</html>