IE9标准视图无负载CSS [英] IE9 standard view no load CSS

查看:54
本文介绍了IE9标准视图无负载CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题,也许我不是唯一的..

I have this problem and maybe I'm not the only..

如果我测试我的网站在FF,Chrome,Safari,IE7,IE8是完美的。

If I test my website on FF, Chrome, Safari, IE7, IE8 is perfect.

在IE9(标准视图)它不加载CSS文件。如果我打开Compatibilty视图,它工作正常...

On IE9 (standard view) It doesn't load CSS files. If I switch on Compatibilty view it works fine...

如何在标准视图上显示CSS?

How can I show the CSS on the standard view as well?

感谢

推荐答案

IE9已知可以拒绝不使用text / cssMIME类型发送的样式表。这是一个新的安全增强,但它捕捉了几个人戒备。您的CSS文件是否动态生成?确保它作为'text / css'传递。

IE9 is known to reject stylesheets which are not sent using "text/css" MIME type. This is a new security enhancement, but it's catching a few people off guard. Is your CSS file dynamically generated? Make sure its getting passed as 'text/css'.

更多信息: http://blogs.msdn.com/b/ieinternals/archive/2011/03/27/http-406- not-acceptable-php-ie9-standards-mode-accept-only-text_2f00_css-for-stylesheets.aspx

另一个try ::在文档中不只是'text / css'需要正确,你需要确保你的本地IIS发送它正确的头。 如果样式表由于不正确的MIME类型而被忽略,则您的网站可能无法按预期呈现。文本,图片或其他功能可能缺少所需的样式。如果样式表被忽略,因为它不承载正确的MIME类型,则会在IE9 F12开发人员工具控制台中记录通知。

Another try:: It's not just 'text/css' in the doc that needs to be correct, you need to make sure your local IIS is sending it with the proper headers. "If a style sheet is ignored due to an incorrect MIME-type, your site may fail to render as expected. Text, images, or other features may lack the desired styling. If a style sheet is ignored because it does not bear the correct MIME-type, a notification will be logged in the IE9 F12 Developer Tools console."

http://msdn.microsoft.com/en-us/library/gg622939%28VS.85%29.aspx

IE9未套用连结样式表

这篇关于IE9标准视图无负载CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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