上周五我提交了代码,但是在经理的浏览器上用不了,我用的是IE8,经理的是IE10。但是星期六就要到上海去测试代码了,
经理上网查资料,很暴力的把浏览器设置为IE8,如: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
后来我也浏览关于兼容的问题,有些系统就是不支持IE的新版本,所以有时候只可以强制转化了(现在的安装系统最低版本貌似是IE8),
下面是我找的资料和连接:
资料一:
资料二:
Document modes and compatibility with Internet Explorer 11
The compatibility improvements made in Internet Explorer 11 lets older websites just work in the latest standards mode, by default, without requiring emulation of the previous browser behavior. Because older websites are now just working, we’ve decided that Internet Explorer 10 document mode will be the last new document mode. Instead, developers will need to move to using Edge mode in Internet Explorer 11.
If you decide that you still need to emulate a previous browser environment, Internet Explorer 10 or older, you can change your server configuration to add X-UA-Compatible meta tags into the HTTP header. Changing this content value lets your site show up as it would appear in the selected version of Internet Explorer. For example, if you wanted the content to look like it did in Internet Explorer 10, you'd specify the value of IE=10 in the X-UA-Compatible metadata. All of the other supported values are here:
Content value | Meaning |
---|---|
IE=5 | Renders using Internet Explorer 5 Quirks mode. |
IE=7 | Renders using Internet Explorer 7 standards mode. |
IE=8 | Renders using Internet Explorer 8 standards mode. |
IE=9 | Renders using Internet Explorer 9 standards mode. |
IE=10 | Renders using Internet Explorer 10 standards mode. |
IE=Edge | Renders using the latest mode. This mode is the recommended for all websites. |
Important |
---|
Using document modes doesn’t alleviate the need for testing content. For further information about compatibility and the X-UA-Compatible header, see Defining Document Compatibility.Don’t target future content values, such as IE=11 and higher. Instead, use IE=Edge to get the latest mode. |
http://msdn.microsoft.com/en-us/library/dn321432.aspx
http://blog.csdn.net/bugknightyyp/article/details/8880505
http://blog.csdn.net/yhawaii/article/details/6915036