我在我的网站上添加了一个 PHP 邮件表单,在完成电子邮件表单后加载页面时,我的页脚没有加载,标签甚至没有显示在检查元素中。 我有下面链接的页面。 edit:footer only 在提交时出现错误时不出现。
提交表单之前和之后您可以看到页脚的地方 http://andytest.herokuapp.com/contact.php
感谢任何帮助,因为我不知道它为什么这样做。
最佳答案
正在为我显示页脚,并且应用了这个 CSS 类:
#footer {
background-image: url("../../images/bottombar2.jpg");
background-repeat: repeat-x;
clear: both;
height: 50px;
min-width: 1200px;
width: 100%;
}
这是你的页脚代码(使用 Firebug )
<footer>
<div id="footer"></div>
</footer>
据我所知,您正在使用 HTML5 <footer>
标记也许您正在使用不兼容的 html5 浏览器查看您的网站。
或者你可能想为你的页脚设置一个白色背景,就像你的菜单一样,然后像这样更新你的 css:
#footer {
background-color:white;
border-top:2px solid orange;
clear: both;
height: 50px;
min-width: 1200px;
width: 100%;
}
关于php - 完成我的 php 电子邮件表单后,页脚甚至没有出现在检查元素上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22265150/