diff --git a/index_absolute.html b/index_absolute.html index 7569f3e06d0d6037886f540104a02caf33812e8b..7c2be48926a64307d67acf3cabf83cd1019291a5 100644 --- a/index_absolute.html +++ b/index_absolute.html @@ -43,25 +43,8 @@ height:30px; background-color:#663663; } - /*这个parent设置了absolute,设置top,left等,所以他以body进行定位*/ - .parent2{ - position: absolute; - top: 80px; - left: 40px; - width:100%; - } - /*这个son设置了absoult,他的父元素有absolute,或者relative,他就会以该父元素相对位置定位*/ - .son10{ - position: absolute; - top: 10px; - left: 40px; - width: 100%; - height:30px; - background-color:#086734; - } - div{ - border:1px solid #888; - } + + @@ -72,19 +55,17 @@

我只是个占位元素2

我只是个占位元素3

-
+
son6
son7
-
+
son8
son9
-
-
son10
-
+

absolute