完全按代码敲得 在mainbody用overflow:hidden清除浮动 怎么还会出现这种情况?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>浮动布局-横向两列</title>
<link href="css/style.css" type="text/css" rel="stylesheet" />
<style type="text/css">
*{margin: 0;padding:0;}
#wrap{background:#00C;margin: 0 auto;width: 960px;}
#header{background: #FF3300;width: 100%;}
#mainbody{background: #FC0;width: 100%;overflow: hidden;}
.left{width: 800px;height:200px;background: #000;float: left;}
.right{width: 140px;height: 500px;background: #690;float: right;}
#footer{background: #639;width: 100%;}
</style>
</head>
<body>
<div id="wrap">
<div id="header">头部</div>
<div id="mainbody">主体部分
<div class="left"></div>
<div class="right"></div>
</div>
<div id="footer">版权部分</div>
</div>
</body>
</html>