在我的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往往会彼此重叠。浏览器中不会出现像其他网站中通常会出现的滚动条。我该怎么做才能做到呢?
你已经绝对的一切,使身体的位置是:相对的;或不给任何位置 – 2012-07-23 09:38:09