使用'Edge'或'IE9'作为X-UA兼容标题? [英] Use 'Edge' or 'IE9' for X-UA-Compatible header?

查看:172
本文介绍了使用'Edge'或'IE9'作为X-UA兼容标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的.htaccess文件中,我有这个标题:

In my .htaccess file I have this header:


标题集X-UA兼容IE = Edge,chrome = 1

Header set X-UA-Compatible "IE=Edge,chrome=1"

我为IE7-9(以及其他浏览器)优化我的网站,但现在IE10即将推出,我是否还应该使用'Edge'值或'IE9'值来保证我的网站可以在IE10中运行?换句话说,IE10可能会有这样的变化,它可能会破坏我在IE9中运行良好的网站吗?

I optimise my sites for IE7-9 (and other browsers), but now that IE10 is coming up, should I still be using the 'Edge' value or 'IE9' value to guarantee my sites will work in IE10? In other words, could IE10 have such changes that it could break my site which worked fine in IE9?

推荐答案

保证是一个强有力的词。 Windows 8 / IE10的测试版尚未发布,因此一切都可能发生变化。现在,为未来未发布的IE版本保证您的网站的唯一方法是将兼容模式设置为IE9。

"Guarantee" is a strong word. A beta of Windows 8/IE10 has not yet been released so everything is subject to change. Right now, the only way to "guarantee" your site for a future unreleased version of IE is to set the compatibility mode to IE9.

然而,话虽这么说,IE10似乎是IE9与HTML5& CSS3支持。它建立在IE9之上,并增加了新的附加功能。很可能您的网站(以及大多数,如果不是几乎所有网站)都将在IE10中呈现而没有任何问题。

However, that being said, IE10 appears to be IE9 with HTML5 & CSS3 support. It builds on IE9 and adds new additional functionality. It is very likely that your site (and most, if not almost all sites) will be rendered in IE10 without any problems.

你一定要查看 Internet Explorer 10开发人员指南:CSS 新功能概述IE10

最好的办法是下载 Windows Developer Preview (即:Windows 8的预览版)并自行测试。这似乎是一项很大的工作,但您可以花一些时间在Windows 8上设置虚拟机,然后您就可以完成所有需要进行的测试。

The best thing to do is download the Windows Developer Preview (ie: the preview version of Windows 8) and test for yourself. That might seem like a big job but you can spend a bit of time setting up a virtual machine with Windows 8 and then you'll be all set for all of the testing you need to do.

这篇关于使用'Edge'或'IE9'作为X-UA兼容标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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