粘性页脚下方出现空白区域,仅限PHP

时间:2014-07-03 09:34:48

标签: php html css sticky-footer

尝试使用Ryan Fait's technique在我的网页上实现css粘性页脚时遇到问题。

我按照他的指示操作了T.当应用于.html文件时,页脚显示完全符合预期。但是,我使用PHP生成我的网页,并且由于某种原因,只有当样式应用于PHP时,页脚下方才会显示相当多的空白区域。

我查看了Firebug中的源代码,<div class="wrapper">在PHP版本中有额外的高度,单独的html中

我根据说明格式化了我的html,并具有以下结构,嵌套在<html><body>标记内。

<div class="wrapper">
    <div class="content">
        <!-- Content in here -->
    </div>
    <div class="push"></div>
</div>
<div class="footer">
    <!-- Footer in here -->
</div>

在粘性页脚元素下方是否存在任何已知问题仅在php 中存在额外的空白区域?如果是,我该如何解决此问题?

0 个答案:

没有答案
相关问题