【发布时间】:2015-04-03 12:24:35
【问题描述】:
我有这个弹出窗口,它将屏幕分成两行,一排流体(蓝色),另一排具有 64 像素(绿色)的恒定高度。
如果小程序设置为 100% 高度 - 它将忽略其容器并膨胀 100 的弹出高度
<applet id="jumpLoaderApplet" width="100%" height="90%"></applet>
如果高度为 90% - 会有一个可见的 10%(见图片中的蓝色部分)
蓝色行包含一个 java 小程序 - 我在使 java 小程序占据其父 div 的 100% 高度时遇到问题。 当没有小程序时 - 没有问题。
.content {
position:absolute;
width:100%;
height:100%;
top:0;
bottom:64px;
background:blue;
}
.footer {
position:absolute;
width:100%;
height:64px;
bottom:0;
background:green;
}
Here is the code along with the CSS
查看蓝色部分 - 它是小程序 div 的一部分:
【问题讨论】:
-
这个div的容器是什么?有
position: relative;吗?