IE8中没有加载CSS样式

我有一个非常奇怪的问题,IE8中没有加载CSS样式(也许IE7也可以,但无法检查).我的网站是http://www.leavetrackapp.com/,我的主CSS文件如下:

@import url("reset.css");
@import url("screen.css");
@import url("site.css");
@import url("colorbox.css");

如果我直接在浏览器中输入地址,则可以访问master.css文件和indidivual样式表. http://www.leavetrackapp.com/stylesheets/master.css返回主文件.

我认为这是导入规则的问题,但不知道它可能是什么. Safari和Firefox工作正常.

任何建议表示赞赏

谢谢

知更鸟

最佳答案
@Guffa用这个把我带到了正确的轨道:问题是HTML5元素在Internet Explorer 8及更低版本中不起作用.

Modernizr会解决这个问题,但是:http://www.modernizr.com/docs/#installing

Drop the script tags in the of
your HTML.
For best performance,you
should have them follow after your
stylesheet references. The reason we
recommend placing Modernizr in the
head is two-fold: the HTML5 Shiv (that
enables HTML5 elements in IE) must
execute before the
,and if
you’re using any of the CSS classes
that Modernizr adds,you’ll want to
prevent a FOUC.

所以,你只需要在< / body>之前移动Modernizr.到< head>里面元件.

相关文章

Css3如何实现鼠标移上变长特效?(图文+视频)
css3怎么实现鼠标悬停图片时缓慢变大效果?(图文+视频)
jquery如何实现点击网页回到顶部效果?(图文+视频)
css3边框阴影效果怎么做?(图文+视频)
css怎么实现圆角边框和圆形效果?(图文+视频教程)
Css3如何实现旋转移动动画特效