需要使用 X-UA-Compatible 强制 IE11 到 IE7
Need to force IE11 to IE7 using X-UA-Compatible
当我在 jsp 的 header 标签中保留标签元标签 'meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"' 时,但是 jsp 嵌套在另一个 jsp 的下方,例如显示在图像中。
但是我不能保持在上面jsp,因为它被其他团队控制了。
我需要将 Internet Explorer 强制设置为 IE7 谁能帮我解决这个问题而不改变系统属性
从 IE9 开始,这似乎是不可能的 - 来自 How Internet Explorer Chooses Between Document Modes(强调已添加):
- In Internet Explorer 9, if the document is hosted in an iframe element, the document mode is determined by the document mode of the
top-level webpage. Subdocuments cannot be rendered in IE9 mode unless
the top-level document is also in IE9 mode.
我认为这条规则也适用于框架集 - 以及不同的文档模式 - 就像你的情况一样。
要了解 IE11 如何决定在哪种文档模式下呈现的最新信息,请查看 Deprecated document modes and Internet Explorer 11,其中包含该过程的流程图。
当我在 jsp 的 header 标签中保留标签元标签 'meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"' 时,但是 jsp 嵌套在另一个 jsp 的下方,例如显示在图像中。 但是我不能保持在上面jsp,因为它被其他团队控制了。
我需要将 Internet Explorer 强制设置为 IE7 谁能帮我解决这个问题而不改变系统属性
从 IE9 开始,这似乎是不可能的 - 来自 How Internet Explorer Chooses Between Document Modes(强调已添加):
- In Internet Explorer 9, if the document is hosted in an iframe element, the document mode is determined by the document mode of the top-level webpage. Subdocuments cannot be rendered in IE9 mode unless the top-level document is also in IE9 mode.
我认为这条规则也适用于框架集 - 以及不同的文档模式 - 就像你的情况一样。
要了解 IE11 如何决定在哪种文档模式下呈现的最新信息,请查看 Deprecated document modes and Internet Explorer 11,其中包含该过程的流程图。