在 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/