简体   繁体   English

Zk 6:兼容模式下的Internet Explorer

[英]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.

相关问题 Dj JWebBrowser兼容性视图与Internet Explorer链接 - Dj JWebBrowser Compatibility view Linked with Internet Explorer InPrivate模式下Internet Explorer中的Selenium测试 - Selenium test in Internet Explorer in InPrivate mode 如何在JAVA中获取Internet Explorer的文档模式 - How to fetch the document mode of Internet Explorer in JAVA Windows 7 Internet Explorer 8保护模式问题 - Windows 7 Internet Explorer 8 protected mode issue 没有 GPO 的 Edge 下的持久性 Inte.net Explorer 模式 - Persistent Internet Explorer mode under Edge without GPO Selenium 在 IE 模式下无法找到新的 window 句柄,但在正常模式下工作(Internet Explorer)| Selenium 版本 4.3.0.0 - Selenium not able to find new window handle in IE MODE but working in normal mode ( internet explorer ) | Selenium version 4.3.0.0 如何通过 Selenium 和 Java 使用 setCapability() 忽略 Internet Explorer 的受保护模式设置? - How to ignore protected Mode Settings for Internet Explorer using setCapability() through Selenium and Java? Java兼容性编译模式 - Java compatibility compilation mode 在Internet Explorer中使用RequestMapping“ /” - Using RequestMapping “/” in Internet Explorer cookie无法在Internet Explorer中运行 - cookie not working in Internet explorer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM