简体   繁体   English

IE文档模式兼容性

[英]IE Document mode Compatibility

There is a legacy application built on Spring Webflow and RichFaces . 有一个基于Spring WebflowRichFaces构建的遗留应用程序。 Now, we have developed an application which is being rendered inside a modal window from the legacy app. 现在,我们已经开发了一个应用程序,该应用程序将在旧版应用程序的模式窗口内呈现。 The problem is, it works perfectly fine in Chrome, FF but IE. 问题是,它在Chrome,FF和IE中都可以正常工作。 Some how the legacy application is rendered in IE7 document mode and when we open the new application in modal, it breaks everything. 一些旧应用程序是如何在IE7文档模式下呈现的,当我们以模式打开新应用程序时,它会破坏一切。 The CSS and JS are not working. CSS和JS无法正常工作。 I tried using the X-UA-Compatible tag and have valid <!DOCTYPE HTML> tag, still the issue persist. 我尝试使用X-UA-Compatible标记并具有有效的<!DOCTYPE HTML>标记,但问题仍然存在。

Is there a way to solve this issue? 有办法解决这个问题吗? How can we render the new application in Document Mode 10 or above? 我们如何在文档模式10或更高版本中呈现新应用程序?

If the site is in an iframe, then you would need to set the X-UA-Compatible meta tag on the parent page that contains the iframe. 如果网站位于iframe中,则需要在包含iframe的父页面上设置X-UA-Compatible元标记。

If you can't do that, you might at least be able to get the legacy application to render in IE11 mode by turning off Compatibility View, if it's currently on. 如果您不能这样做,则至少可以通过关闭“兼容性视图”(如果当前处于打开状态)来使旧版应用程序以IE11模式呈现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM