我在一个html的body中创建了两个div,第一个默认布局,第二个设置了绝对布局,为什么第二个div在第一个下面,不是绝对定位元素找祖先中设置了position:relative或者absolute的元素为参照,没找到以body参照,为什么不是第二个div把第一个div覆盖
<!DOCTYPE HTML>
Title .main{width:400px;height:400px;background:red;} .main .left{width:100px;height:100px; background:yellow;float:left;} .main .right{width:100px;height:100px; background:blue;float:right;} .test{width:400px;height:400px;background:green;position:absolute;}