php - 完成我的 php 电子邮件表单后,页脚甚至没有出现在检查元素上

标签 php html css

我在我的网站上添加了一个 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>

enter image description here
据我所知,您正在使用 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/

相关文章:

PHPMyAdmin 说 : The used command is not allowed with this MySQL version

php - 使用 php 登录 mysql 时遇到问题

javascript - 淡出悬停 div 上的其他 div

html - 页脚未显示,因为图像位置设置为相对

html - 将 XSL 元素对齐到页面右侧

php - 使用 PHP 的网页连接到远程 MySQL 数据库

php - 如何通过 PHP 执行 Google Cloud Function?

html - CSS动态调整图像的高度

javascript - 溢出隐藏更改内容位置

css - 是否有用于文本节点的 CSS 选择器?