CSS 问题 : Footer overlapping with above content

标签 css overlap

请看这里http://sources.freehosting.bg/1st-level.html

当页面在窗口中“最小化”时,页脚与上述内容重叠。几个小时以来,我一直试图解决这个问题,但没有成功。

最大化:http://store.picbg.net/pubpic/99/2A/db640a6f9063992a.PNG 最小化:http://store.picbg.net/pubpic/E4/96/2c1e86018b7be496.PNG

float 已清除,我不知道是什么原因造成的。请帮我解决一下...

最佳答案

您的 setHeights 导致了问题,它将 #content 和 main .main 的高度设置为小于它们的内容,因此它溢出,如果你取出 -20 它似乎可以工作,但为什么要以任何方式设置高度,因为它会随其内容扩展。

function setHeights() {
    var newHeight=$(document).height() - 290;
    $('#content').height(newHeight);
    $('.main').height(newHeight/*-20*/);
}

关于CSS 问题 : Footer overlapping with above content,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11787172/

相关文章:

html - 如何在 ipython notebook 中更改字体

html - 在 'li' 中垂直对齐 'ul' 中间

javascript - 如何检查两个 'lines'是否重叠?

html - CSS 响应式设计重叠主体

css - SCSS : How can import a Google Font inside a SCSS file?

javascript - 网页包 1.12 : Bundle css files

javascript - 单击按钮后更改打印样式

css - 父子重叠以创建选项卡样式效果

python - 考虑重叠情况下确定总时间的有效方法

css - 图像相互重叠的导航