<!---->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
*{
margin:0px;
padding:0px;
}
#d30{
height:100px;
}
#d01{
background:red;
width:500px;
height:500px;
overflow:hidden;
position:static;
}
#d01 #d02{
background:yellow;
width:200px;
height:200px;
position:absolute;
top:100px;
}
</style>
</head>
<body>
<div id="d30"></div>
<div id="d01">
<div id="d02"></div>
</div>
</body>
</html>
可以看到d02的位置相对于父元素d01,而不是body,去掉d01的overflow:hidden;后正常,或者加dtd,在标准模式下也正常
网名: 天堂左我往右