简体   繁体   English

页面底部过多的多余填充

[英]Way too much extra padding on bottom of page

I have way too much padding at the bottom of my page and I have no idea why it is there. 我在页面底部有太多填充,我不知道为什么要填充它。 I have looked at Firebug in Firefox, but can't seem to find out which element is causing the extra padding. 我看过Firefox中的Firebug,但似乎无法找出是哪个元素引起了额外的填充。 I know it will be really stupid, but I can't for the life of me figure it out. 我知道这真的很愚蠢,但是我无法一辈子弄清楚。 Thanks for helping out! 感谢您的帮助!

The site can be found by clicking here . 单击此处可以找到该站点。

EDIT: I just realized that this is an issue specific to Firefox. 编辑:我刚刚意识到这是特定于Firefox的问题。 It looks like I would expect when I load the page in Safari. 在Safari中加载页面时,看起来就像我期望的那样。 Any idea why Firefox would render the page with an extra 200 or so pixels at the bottom of the page (which causes the browser to have scroll bars when the page doesn't require them). 不知道为什么Firefox会在页面底部额外渲染200个左右的像素(这会导致浏览器在页面不需要滚动条时使用滚动条)。

Thanks for the suggestions already given! 感谢您已经给出的建议!

Check line 1197 of your stylesheet ( styles.css ). 检查样式表的第1197行( styles.css )。

The height of div.bottomLineContainer is being set to 200px . div.bottomLineContainer的高度设置为200px Try changing the value to 100px instead. 尝试将值更改为100px

I just looked at the site. 我只是看了看现场。 Remove 去掉

.cf:before, .cf:after {
    content: "";
    display: table;
}

It's on line 1361. If you turn off either property the extra space goes away. 它在1361行上。如果关闭这两个属性,则多余的空间就会消失。 To find it I just methodically deleted each piece of html in firebug until the culprit was found, then started turning off properties one by one. 为了找到它,我只是有条不紊地删除了萤火虫中的每个html,直到找到罪魁祸首,然后才开始逐个关闭属性。

Nice site. 不错的网站。

I would check the extra DIV statement you have listed below the contact us banner. 我会检查您在“与我们联系”横幅下方列出的多余DIV声明。 Try removing them and see what happens. 尝试删除它们,看看会发生什么。 I will check on my end in the meantime. 同时,我将检查我的结果。 It's your shadowbox which is causing the extra space, i tried loading the page without it and there was no extra padding on the bottom. 这是您的影子框导致了额外的空间,我尝试在没有它的情况下加载页面,并且底部没有多余的填充。 Check documentation for the shadowbox. 检查文档的影子框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM