关于float和position,还有代码怎么兼容ie6
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>混合布局</title>
<style type="text/css">
body{padding: 0;margin: 0;font-size: 30px;font-weight: bold;}
div{text-align: center;line-height: 50px;}
.top{height: 100px;background: #ccc;width: 100%;}
.main{height: 600px;background:red;}
.left{height: 600px;width: 200px;background:blue;position:absolute;left: 0;top: 100px;}
.right{height: 600px;background: green;margin-left: 210px;}
.foot{height: 100px;width: 100%;background:purple;clear: both;}
</style>
</head>
<body>
<div class="top">top</div>
<div class="main">
<div class="right">right</div>
<div class="left">left</div>
</div>
<div class="foot">foot</div>
</body>
</html>
我想问下为什么在.lefe这里不能用float:left而只能用position:absolute?float和position到底要在什么时候用?而且有没有大佬告诉我怎么写任务四(编写代码要兼容IE6)的代码?