css - 页脚背景在 Internet Explorer 中出现两次

标签 css internet-explorer

<分区>

http://www.utahvalleyhealthclinic.com/services在所有版本的 IE 中,页脚背景出现两次。我检查了 HTML,页脚元素似乎在 IE 的 HTML 中出现了两次,但在 Chrome 中没有出现。

我不清楚为什么会这样,因为我不记得将代码放在那里两次,我认为如果我有的话,它也会出现在 Chrome 中。我使用了标记验证器来检查页面,它说我缺少一大堆开始和结束标记(当我查看代码时它们实际上就在那里)。

有人知道为什么会这样吗?

最佳答案

在页脚处,有两个 anchor 标签<a>没有关闭。解决这个问题,您的问题就会得到解决。

工作演示:http://jsfiddle.net/DpGyT/1/

改变

<div class="lbtns">
<a href="http://www.utahvalleyhealthclinic.com/contact-us"><img src="http://www.uvhc.mikeandjewels.com/wp-content/themes/thesis_185/custom/images/mapsbtn.png">
</div>
<div class="lbtns">
<a href="http://www.utahvalleyhealthclinic.com/patient-forms"><img src="http://www.uvhc.mikeandjewels.com/wp-content/themes/thesis_185/custom/images/frmsbtn.png">
</div>

<div class="lbtns">
    <a href="http://www.utahvalleyhealthclinic.com/contact-us"><img src="http://www.uvhc.mikeandjewels.com/wp-content/themes/thesis_185/custom/images/mapsbtn.png"></a>
</div>
<div class="lbtns">
    <a href="http://www.utahvalleyhealthclinic.com/patient-forms"><img src="http://www.uvhc.mikeandjewels.com/wp-content/themes/thesis_185/custom/images/frmsbtn.png"></a>
</div>

关于css - 页脚背景在 Internet Explorer 中出现两次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13188885/

上一篇:php - 如何使用 CSS 在图像上创建虚线阴影效果?

下一篇:css - 图像在 CSS 中设置但未显示在 HTML 中

相关文章:

html - float 和媒体查询在 IE 中不起作用

html - 带和不带滚动条的 div 内表格的填充

javascript - 如何强制 google chrome/firefox 使用 Internet explorer web 浏览器控件

javascript - window.onbeforeunload 在 IE 中触发部分回发事件

jquery - 使用 jQuery 创建 CSS(prependTo 和 append)不适用于 Internet Explorer

边框半径为 20 的 Javafx 标签

html - 带有圆形和矩形的列表

html - 在 Chrome 中错误的断词?但在 IE 中正确显示!在 HTML 代码中使用中文单词时

javascript - 嵌入式 Google map 仅在 IE 上加载,但在 Mozilla Firefox 和 Google Chrome 上均不加载

javascript - IE9 似乎无法识别 $.ajax 的 'complete' 事件