CSS不在IE 10中呈现 [英] CSS not rendered in IE 10

查看:180
本文介绍了CSS不在IE 10中呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CSS文件不能在IE 9和10中渲染,但在兼容模式下工作良好。



我收到以下错误getSEC7113:不匹配在IE 10中。



其中我没有在我的响应标题中获得内容类型。



解决方案



>

它有一个答案,总结将是:



由于MIME类型不匹配css在IE 9和10被忽略。MIME类型可以是正确的实用程序名为文件类型管理器它是由NirSoft创建的免费软件。原来,.css的MIME类型已经改为text / plain,阻止IE呈现我的样式。使用FileTypesMan将它改回文本/ css解决了问题。


  1. 从NirSoft网站下载FileTypesMan。使用页面底部附近的链接为操作系统选择正确的版本(32位,64位和Windows 98 / ME有不同的版本)。


  2. 将文件解压缩到本地文件夹,然后双击FileTypesMan.exe。


  3. 当FileTypesMan完成列出所有文件类型后,向下滚动窗格以找到.css。


  4. 双击以编辑设置。


  5. 在打开的对话框中的MIME类型字段中将值更改为text / css。


  6. 单击确定。任务完成。


IE 10现在应该具有自己的特点(至少就渲染样式表而言) p>

不是我的工作:不是我自己的搜索,您可以在这里看到:http://stackoverflow.com/a/18791928/1762944



我希望这个修正你!



我想知道你不是在写 type =text / css !所以我发现这下一个帮助文章!它有与你的相同的问题。 SEC7113:由于mime类型不匹配而忽略CSS



我只是简单地在Google上搜索了这个问题,这是第一个结果!您应该已经搜索了该问题。


CSS files not rendered in IE 9 and 10 but works good in compatibility mode.

I am the following error get "SEC7113: CSS was ignored due to mime type mismatch" in IE 10 .

wherein i don't get a content-type in my response header!

Further this is on my local.

Any suggestions could be appreciated.

解决方案

It has an answer, summary would be:

As due to MIME type mismatch css was ignored in IE 9 and 10. The MIME type can be correct by utility called File TypesMan It is freeware created by NirSoft. It turned out that the MIME type of .css had been changed to text/plain, preventing IE from rendering my styles. using FileTypesMan to change it back to text/css fixed the problem.

  1. Download FileTypesMan from the NirSoft site. Use the links near the bottom of the page to select the correct version for your operating system (there are different versions for 32-bit, 64-bit, and Windows 98/ME).

  2. Unzip the files to a local folder, and double-click FileTypesMan.exe.

  3. When FileTypesMan has finished listing all file types, scroll down in the top pane to find .css.

  4. Double-click to edit the settings.

  5. Change the value to text/css in the MIME Type field in the dialog box that opens.

  6. Click OK. Job done.

IE 10 should now behave itself (well, at least as far as rendering style sheets is concerned).

Not my work: Its not my own search, you can see this here: http://stackoverflow.com/a/18791928/1762944

I hope this fixed you!

I was wondering that you are not writing type="text/css" but you said, that you are! So I found this the next helpfull article! It has the same issue as yours. SEC7113: CSS was ignored due to mime type mismatch

I just did a simple Google search for the issue, and this was the first result! You should have searched for the issue.

这篇关于CSS不在IE 10中呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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