请看这里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/