IE9未应用链接样式表 [英] IE9 Not applying linked style sheets

查看:81
本文介绍了IE9未应用链接样式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题。我开发了一个网站,在大多数浏览器工作正常。我刚刚升级到IE9,没有我的样式被应用。我在我的本地电脑上查看这个网站还没有在互联网上。所有内联或页面级样式都会正确应用,但HEAD段中外部css文件所链接的样式则不会应用。如果我使用开发者工具栏和查看网站为IE8,IE7或任何其他模式的网站工作正常。有大约6个样式表,没有额外的组件,所以它不应该是太多的样式表的问题。我不明白是什么造成这一点。

I have a wierd problem. I developed a site that works fine in most browsers. I just upgraded to IE9 and none of my styles are being applied. I'm viewing this on my local pc as this site is not on the internet just yet. All in-line or page level styles get applied correctly but the styles linked from external css files in the HEAD section aren't applied at all. If I use the developer toolbar and view the site as IE8, IE7, or any other mode the sites work fine. There's about 6 style sheets and no extra components so it shouldn't be an issue of too many style sheets. I can't figure what is causing this. Anybody else seen this?

推荐答案

也许你的服务器没有发送正确的mime类型
http://msdn.microsoft.com/en-us/library/gg622939%28VS.85%29 .aspx

Maybe your server do not send the right mime-type http://msdn.microsoft.com/en-us/library/gg622939%28VS.85%29.aspx

这篇关于IE9未应用链接样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆