我是否可以仅对< frame>中的内容禁用IE兼容模式? [英] Can I disable IE compatibility mode only for content within a <frame>?

查看:123
本文介绍了我是否可以仅对< frame>中的内容禁用IE兼容模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个在我公司内部网上运行的Web应用程序。我在我的流程早期出现了Internet Explorer自动兼容模式的问题,并添加了代码以强制我的页面显示在最新版本的IE中:

Ive developed a Web Application that runs in my company's intranet. I had an issue with Internet Explorer's automatic compatibility mode earlier in my process, and added code to force my pages to be displayed in the newest version of IE:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

这完美无缺。直到我的Web应用程序最近集成到另一个Intranet中,我们的客户也可以使用它。网页是我无法控制的。我的应用程序集成在另一个html页面的框架内。现在我回到兼容模式,它打破了我的网络应用程序的关键功能。

This worked perfectly. Until my web application was recently integrated into another intranet, available also to our customers. The web pages are beyond my control. My application is integrated within a frame inside another html page. And now I'm back to compatibility mode, and it breaks key functionality of my web app.

是否有可能强制最新版本的浏览器只解释什么在我的框架内?

Is it possible to force the newest version of the browser to interpret only what is inside my frame?

推荐答案

根据 this & 这个(甚至比第一个 - 标记答案的通知更好),解决方案是不可能的。

According to this & this (even better than the 1st - notice who marked the answer), a solution isn't possible.

如果考虑一下,IE的GUI实际上暗示整个页面以兼容模式呈现(每页只有1个指示符图标,在地址栏旁边),因此可以安全地假设所有内容都被视为相同。完整页面兼容性,或者根本不兼容。

If thinking about it for a second, IE's GUI is actually hinting that an entire page is rendered in compatibility mode (only 1 indicator icon per page, next to the address bar), so it's safe to assume everything is treated the same. Either full page compatibility, or not at all.

P.S。我知道这不是太有用,但它试图提供一个有效的理由,为什么它不可能,最好从不同的方向开始。就个人而言,我会尝试使用HTML5(<!DOCTYPE html> )。可以有选择地启用(仅限你的框架)并且可能不太难调整,因为你已经使用'edge'......

P.S. I know this isn't too helpful, but it's an attempt at providing a valid reason why it's not possible and it's better to start looking in different directions. Personally, I'd try to go with HTML5 (<!DOCTYPE html>). That CAN be enabled selectively (only on your frame) and might not be too hard to adjust to since you already use 'edge'...

这篇关于我是否可以仅对&lt; frame&gt;中的内容禁用IE兼容模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆