一月 22
一月 22nd, 2009X-UA-Compatible
Html/Css/PsHtml - ie8 - meta10:37
- <meta http-equiv="X-UA-Compatible" content="IE=5" />
像是使用了 Windows Internet Explorer 7 的 Quirks 模式,这与 Windows Internet Explorer 5 显示内容的方式很相似。
- 2.<meta http-equiv="X-UA-Compatible" content="IE=7" />
无论页面是否包含 指令,都像是使用了 Windows Internet Explorer 7 的标准模式。
- 3.<meta http-equiv="X-UA-Compatible" content="IE=8" />
- 4.<meta http-equiv="X-UA-Compatible" content="edge" />
Edge 模式通知 Windows Internet Explorer 以最高级别的可用模式显示内容,这实际上破坏了“锁定”模式。
- 5.<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
EmulateIE7 模式通知 Windows Internet Explorer 使用 指令确定如何呈现内容。标准模式指令以Windows Internet Explorer 7 标准模式显示,而 Quirks 模式指令以 IE5 模式显示。与 IE7 模式不同,EmulateIE7 模式遵循 指令。对于多数网站来说,它是首选的兼容性模式。
附:今天又看到一篇译文说X-UA-Compatible不加时默认被锁定为IE7版本执行。有点不太明白,我测试的时候只有在content="IE=8"的时候才符合ie8下的运行环境。
本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议,转载请注明作者及出处。

















