2012-07-23 90 views
0

在我的html页面中,我有3个div。他们的定位是:在最小化浏览器时需要定位div的帮助

.rightPanel1 { 
    position: absolute; 
    right: 3%; 
    top: 15%; 
    border-style: solid; 
    border-color: teal; 
    border-width: 0.5px; 
    padding-left: 0.5%; 
    padding-right: 0.5%; 
    padding-bottom: 0.5%; 
    padding-top: 0.5%; 
} 
.rightPanel2 { 
    position: absolute; 
    right: 3%; 
} pithigoooo top: 37%; 
     padding-left: 0.5%; 
    padding-right: 0.5%; 
    padding-bottom: 0.5%; 
    border-style: dashed; 
    border-color: teal; 
    border-width: 0.5px; 
     padding-top : 0.5%; 
    padding-left: 0.5%; 
    padding-top: 0.5%; 
     } 
.body { 
    position: absolute; 
    left: 3%; 
    right: 25%; 
    top: 15%; 
    } 

现在,当浏览器最小化时,所有的div往往会彼此重叠。浏览器中不会出现像其他网站中通常会出现的滚动条。我该怎么做才能做到呢?

+0

你已经绝对的一切,使身体的位置是:相对的;或不给任何位置 – 2012-07-23 09:38:09

回答

0

你应该修复你的身高和体宽。

例如:

.body { 
height: 900px; 
width: 1000px; 
} 
+1

“=”我从来没有在CSS中看到过。 – SVS 2012-07-23 09:40:30

+1

@SVS lol I编辑 – 2012-07-23 09:41:00

+0

:) yes“:”not“=” – osyan 2012-07-23 09:49:00