【发布时间】:2014-04-24 19:56:45
【问题描述】:
我创建了一个粘性页脚,它似乎停留在页面底部。唯一的问题是,当我通过向上拖动浏览器底部来最小化浏览器时,上面的内容与页脚重叠。内容 div 包含在我最小化时位于页脚顶部的图像。页脚中的类型也出现在图像上方(最小化时)。任何帮助,将不胜感激。谢谢。
<div class="supercontainer"
<div class="nav"></div>
<div class="wrapper">
<div class="content"></div>
<div class="push"></div>
</div>
</div>
<div class="footer"></div>
.supercontainer {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -4em;
position: relative;
}
.footer {
background-color: black;
width: 100%;
height: 100px;
}
.push {
height: 100px;
}
【问题讨论】:
-
我 couldn't reproduce 问题,请考虑提供在线演示来演示实际问题。