相对定位问题
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>absolute样式</title>
<style type="text/css">
#div1{
width:200px;
height:200px;
border:2px red solid;
}
#div2{
width:400px;
height:300px;
border:1px blue solid;
position:relative;
top:200px;left:100px;
}
</style>
</head>
<body>
<div id="div2">
<div id="div1">div1</div>
</div>
</body>
</html>
这是代码,我给div2设置定位,嵌套里面的div1也跟随移动,为什么