<html>
<head>
<title>test</title>
<style type=”text/css”>
#left,#right
{
background-color:#eee;
height:600px;
}
#left
{
float:left;
width:100px;
}
</style>
</head>
<body >
<div>
<div id=”left”></div>
<div id=”right”></div>
</div>
</body>
</html>
这样就行了 要不就在 body的 onresize 中事件中写js代码