[英]Zk 6 : Internet explorer in compatibility mode
we have a website deployed on Internet Explorer v8 in compatibility mode. 我们有一个以兼容模式部署在Internet Explorer v8上的网站。 Unfortunately, Zk doesnt manage compatibility very well. 不幸的是,Zk不能很好地管理兼容性。
For moment, we have added a meta tag in order to force the engine. 暂时,我们添加了一个meta标签以强制使用引擎。
<? meta http-equiv="X-U-Compatible" content="IE=8" ?>
But the result is not good. 但是结果不好。
Is it normal to not have the same result than with a IE 8 (no compatibility mode) ? 没有与IE 8(没有兼容模式)相同的结果是否正常? The result is near to be good with the meta which force the content with IE7 engine, but others components are impacted (menubar for example). 使用IE7引擎强制内容的元数据的效果几乎不错,但是其他组件也会受到影响(例如,菜单)。
How to manage properly that ? 如何正确管理呢?
Thank you 谢谢
Start out by using a standard doctype: 通过使用标准文档类型开始:
<!DOCTYPE html>
You can still use the x-ua-compatible
header if you like, or the meta tag: 如果愿意,您仍然可以使用x-ua-compatible
头,或者使用meta标签:
<meta http-equiv="x-ua-compatible" content="IE=8">
This forces the document into IE8 Standards Mode. 这将迫使文档进入IE8标准模式。 In IE7 the document will appear in IE7 Standards Mode, and in IE9+ the document will show in IE8 Standards Mode. 在IE7中,文档将以IE7标准模式显示,而在IE9 +中,文档将以IE8标准模式显示。
Once your document is in Standards Mode, you can expect more consistent behavior and rendering. 文档进入“标准模式”后,您可以期待更一致的行为和呈现。 At that point you need to identify the areas that are inconsistent between browsers, and deal with those on a case-by-case basis. 此时,您需要确定浏览器之间不一致的区域,并逐案处理。
We're here to help, when that time comes. 到那时,我们将为您提供帮助。 Until then, have a read through Specifying Legacy Document Modes . 在此之前,请通读“ 指定旧版文档模式” 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.