简体   繁体   English

Internet Explorer 11 X-UA-Compatible = IE8,框架的UserAgent错误

[英]Internet Explorer 11 X-UA-Compatible=IE8, wrong UserAgent for frames

i have a intranet application. 我有一个Intranet应用程序。 We are using IE11, the application is running in IE8-mode. 我们正在使用IE11,该应用程序以IE8模式运行。 This is specified via the x-ua-compatible-Meta-Tag. 这是通过x-ua-compatible-Meta-Tag指定的。

We are showing external applications in iframes. 我们正在iframe中显示外部应用程序。 These applications needs to run in IE5. 这些应用程序需要在IE5中运行。 They add the x-ua-compatible-Tag automatically, when the mode is IE8 or lower, but the Internet Explorer sends the IE-UserAgent in request header for the frames. 当模式为IE8或更低版本时,它们会自动添加x-ua-compatible-Tag,但是Internet Explorer在帧的请求标头中发送IE-UserAgent。

Any idea how to fix that? 任何想法如何解决? I was searching for the whole day... 我整天都在寻找...

I have bad news for you. 我对你有个坏消息。 What you are trying to achieve is not possible. 您试图实现的目标是不可能的。

IE shows all frames/iframes within a single page using the same browser mode. IE使用相同的浏览器模式显示单个页面中的所有框架/ iframe。 It cannot display different modes across different frames or iframes. 它无法在不同的框架或iframe中显示不同的模式。 It simply isn't an option. 这根本不是一个选择。

The closest you can possibly get to what you want is to open the quirks-mode page in a new tab or browser window rather than an iframe. 您可能最想得到的是在新标签页或浏览器窗口而不是iframe中打开“怪癖模式”页面。

While I'm answering, I would also implore you to find a way to get rid of the requirement for IE5 quirks mode. 在回答问题时,我也恳请您找到一种摆脱IE5怪癖模式要求的方法。 Even IE8 mode is going to be problematic for you in the near short term. 甚至在不久的将来,即使是IE8模式也会给您带来麻烦。 Microsoft's Edge browser does not support these modes, so when they finally drop support for IE11 your site will simply not work on new systems. Microsoft的Edge浏览器不支持这些模式,因此当它们最终放弃对IE11的支持时,您的站点将无法在新系统上运行。 This isn't a long-term problem: Microsoft's stated goal is to move forward with the Edge browser and drop support for IE as soon as practical. 这不是一个长期的问题:Microsoft的既定目标是继续使用Edge浏览器,并在可行时尽快放弃对IE的支持。

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

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