简体   繁体   English

HTML / CSS的奇怪问题导致额外的空间

[英]Strange issue with HTML / CSS causing extra space

I have a problem with some unexplained space at the bottom of a page that I am working on. 我在我正在处理的页面底部有一些无法解释的空间有问题。 I have tried to fix the issue but I can't figure out what is causing it... 我试图解决这个问题,但我无法弄清楚是什么导致它...

A screenshot of the problem is here: http://bit.ly/18FQ9Ca 问题的屏幕截图如下: http//bit.ly/18FQ9Ca

A link to the real page is here: http://bit.ly/18FR1qA 这里是真实页面的链接: http//bit.ly/18FR1qA

I think it might be something to do with the id="CivilService" div layer, as the problem goes away when I remove the div. 我认为它可能与id="CivilService" div层有关,因为当我删除div时问题就消失了。 But there doesn't seem to be anything contained which could cause the problem. 但似乎没有任何可能导致问题的内容。

Many thanks for any help that you can give... 非常感谢您提供的任何帮助......

EDIT 编辑

The issues seems related jQuery not correctly setting the hight of .wrapper-holder using this code 问题似乎与jQuery没有使用此代码正确设置.wrapper-holder的高度相关

var footerHeight = $('.footer-wrapper').height();
var main_body_height = doc_height - footerHeight;
$("div.wrapper-holder").height(main_body_height);

This exact code seems to be working fine on other pages of the site, does anyone know what could be causing the problem on this page? 这个确切的代码似乎在网站的其他页面上正常工作,有谁知道这个页面上可能导致问题的原因是什么?

Many thanks for your continued help... 非常感谢你的继续帮助......

You set a height on wrapper-holder 你在包装器上设置一个高度

<div class="wrapper-holder" style="height: 1458px;">

</div>

Remove this height or set a smaller height to remove the spacing at the bottom 移除此高度或设置较小的高度以移除底部的间距

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

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