gpt4 book ai didi

java - 关闭 IE 8 兼容模式

转载 作者:太空宇宙 更新时间:2023-11-04 12:33:01 24 4
gpt4 key购买 nike

我公司使用 IE8 作为默认浏览器,默认情况下为所有 Intranet 站点设置兼容模式。

我已经在 IE8 上检查了我的应用程序,外观和感觉完全是偶然的危险。但在 chrome 和 Mozilla 上的外观和感觉都很好。

有人建议我关闭兼容模式。

有两种方式:1) IE>工具>兼容 View 设置>(未选中)显示内部网站...

2) 放<meta http-equiv="X-UA-Compatible" content="IE=Edge" />在 jsp 页面上。

我检查过,当我关闭兼容模式时,我的应用程序看起来很好。

我的问题:

1)兼容模式有什么用。

2) 如果我通过 JSP 页面关闭它,其他影响是什么。 (它是否像在 IE11 上一样,如果我将它更改为与 IE9 兼容,那么我的应用程序将无法按预期工作。)

3) 关闭兼容模式是唯一的解决办法还是我还能做些什么

4)是否有其他影响。

最佳答案

来自链接的 MSDN 页面:

Internet Explorer 8 supports many compatibility modes that enable different supported features and affect the manner in which content is rendered. For example,

IE5 mode renders content as if it were displayed by the Windows Internet Explorer 7 Quirks mode, which is very similar to how Microsoft Internet Explorer 5 displayed content.

IE7 mode renders content as if it were displayed by the Internet Explorer 7 Standards mode, whether or not the page contains a directive.

EmulateIE7 mode tells Windows Internet Explorer to use the directive to determine how to render content. Standards mode directives are displayed in Internet Explorer 7 Standards mode, and Quirks mode directives are displayed in IE5 mode. Unlike IE7 mode, EmulateIE7 mode respects the directive. For many Web sites, this is the preferred compatibility mode.

EmulateIE8 mode is similar to EmulateIE7 mode; Internet Explorer uses the directive to determine how to render content; however, standards mode directives are displayed in Internet Explorer 8 Standards mode. Quirks mode directives are displayed in IE5 mode.

IE8 mode provides the highest support available for industry standards, including the W3C Cascading Style Sheets Level 2.1 Specification and the W3C Selectors API, as well as limited support for the W3C Cascading Style Sheets Level 3 Specification (Working Draft).

Edge mode tells Windows Internet Explorer to display content in the highest mode available, which actually breaks the “lock-in” paradigm. With Internet Explorer 8, this is equivalent to IE8 mode. If a (hypothetical) future release of Internet Explorer supported a higher compatibility mode, pages set to Edge mode would appear in the highest mode supported by that version; however, those same pages would still appear in IE8 mode when viewed with Internet Explorer 8. It is recommended that Web developers restrict their use of Edge mode to test pages and other non-production uses because of the possible unexpected results of rendering page content in future versions of Windows Internet Explorer.

By default, Internet Explorer 8 uses EmulateIE8 mode to display pages loaded from the Internet Zone. Web pages loaded from the Intranet Zone or with the Web Browser control are displayed in EmulateIE7 mode.

Source : msdn

关于java - 关闭 IE 8 兼容模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27500315/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com