css - 为什么 header 的 css 无法在 IE 的特定页面上正确加载?

标签 css

在 IE8 中不工作的页面是 http://gainntrain.com/shopping/index.php 它正在使用 chrome 和 firefox ... 此页面从 CubeCart 加载,但我编辑以更改皮肤的页面 http://gainntrain.com/shopping/skins/KitaBlue/styleTemplates/global/index.tpl

那个页面在IE8下有同样的问题

我不明白的是同一个标题在 IE8 中网站的其他页面上工作正常


更改了 <header><nav>使用标签所具有的样式将标签添加到带有类的 div,这似乎处理得很好,所以感谢您的回答!

最佳答案

看看
Validator

Jigsaw

请注意,Jigsaw 中唯一的错误是 CSS3 规则。 我建议查看 HTML,因为验证器对您页面的分析中有这一行

    Line 11, Column 107: end tag for "link" omitted, but OMITTAG NO was specified
…="http://www.gainntrain.com/site/css/style.css" type="text/css" media="screen">
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

看起来您的文档使用的是 HTML5 功能,但使用的是较旧的文档类型声明。我建议更改:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

至:

<!doctype html>
<html>

只要它不破坏网站。 :]

关于css - 为什么 header 的 css 无法在 IE 的特定页面上正确加载?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8042204/

相关文章:

html - 跨越 2 列和 2 行的 Flexbox 单元格

html - 宽度不适用于 li 元素

html - 如何在选择列表中添加图像?

css - 短 Emmet 缩写不适用于 css/scss

javascript - 如何将图像放置在 Canvas 上?

html - 在忽略 float 元素的同时在父级中居中 div

html - 在 div 问题中选择子链接

css - 使用 px 值相对于右下角定位背景

css - 进度条 Div 样式

html - 使用简单的 CSS 设置 li 的高度