横向两列布局
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>横向两列布局</title>
<style type="text/css">
*{margin:0;padding:0;}
#wrap{width:960px;text-align:center;background:#ccc;margin:0 auto;}
#header{height:30px;background:orange;}
#mainBody{height:500px;width:100%;background:yellow;overflow:hidden;}
.left{width:700px;height:150px; background:black;float:left;}
.right{height:500px;background:green;float:right;margin-left:710px;}
#footer{height:100px;background:purple;bottom:0;}
</style>
</head>
<body>
<div id="wrap">
<div id="header">header</div>
<div id="mainBody">mainBody
<div class="left">left</div>
<div class="right">right</div>
</div>
<div id="footer">footer</div>
</div>
</body>
</html>为什么我右边的视图出来没有right呢,??