html中ie9文档模式,IE9:强制IE9浏览器模式和文档模式(IE9: Force IE9 browser mode and document mode)...

IE9:强制IE9浏览器模式和文档模式(IE9: Force IE9 browser mode and document mode)

在IE9中,我的网页显示为Browser Mode: IE9 Compat View和Document Mode: IE standards ,这打破了我的所有canvas 。

我已经确保将作为第一行。

如何强制IE9上的“正常”IE9模式?

In IE9, my webpage is displaying as Browser Mode: IE9 Compat View and Document Mode: IE standards, which is breaking all my canvases.

I have made sure to have as the very first line.

How can I force "normal" IE9 mode on IE9?

原文:https://stackoverflow.com/questions/10800290

更新时间:2019-09-07 03:37

最满意答案

有“边缘”模式。

My Web Page

Content goes here.

从链接的MSDN页面:

边缘模式告诉Windows Internet Explorer以可用的最高模式显示内容,这实际上打破了“锁定”范例。 使用Internet Explorer 8,这相当于IE8模式。 如果(假设的)未来版本的Internet Explorer支持更高的兼容模式,则设置为边缘模式的页面将以该版本支持的最高模式显示; 但是,使用Internet Explorer 8查看时,这些相同的页面仍将以IE8模式显示。

但是,在生产中不鼓励“边缘”模式:

建议Web开发人员限制他们使用Edge模式测试页面和其他非生产用途,因为在未来版本的Windows Internet Explorer中可能会出现意外的呈现页面内容的结果。

There is the "edge" mode.

My Web Page

Content goes here.

From the linked MSDN page:

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.

However, "edge" mode is not encouraged in production use:

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.

相关问答

我认为你需要“边缘”模式。 看一下这个:

My Web Page

Content goes here.

I think you need "edge" mode. Check this

...

尝试这个答案: https : //stackoverflow.com/a/13524518/1679310 。 总结,给IE浏览器更多的信息在meta标签中:

My Web

编辑注意:正如Olly Hodgson所说,正确的选项是IE = edge,如上面的代码段所述。 以下

...

这里的典型解释是,你在两台机器上有不同的CompatView设置。 在工具菜单上,选择“兼容性视图设置”。 如果它们相同,则在页面的上下文菜单>属性中查看该页面是否被视为源自其中一台计算机上的其他区域。 The typical explanation here is that you have different settings for CompatView on the two machines. On the Tools menu, choose "Compatibility View Se

...

IE8和IE9在宽带上有6个并发连接。 IE10有8个并发连接。 http://weblogs.asp.net/mschwarz/archive/2008/07/21/internet-explorer-8-and-maximum-concurrent-connections.aspx http://www.browserscope.org/?category=network IE8 and IE9 have 6 concurrent connections on broadband. IE10

...

是的,完全有可能。 只需确保在主/布局页面中使用content="IE-Edge" 。 这可确保IE在其标准模式下运行。 如果您想要特定模式,请将其替换为content="IE9"或content="IE8"

Yes, totally possible. Just make sure you use the content="IE-Edge" in your Master/layout p

...

网站无法设置浏览器模式。 在浏览器请求网站内容之前选择浏览器模式。 这指定浏览器如何识别该网站,如UA字符串。 正如你所提到的,文档模式可以由作者设置,包括一个X-UA兼容meta元素,或者使用DOCTYPE。 这覆盖浏览器为该浏览器模式设置的默认值。 更改浏览器模式仅对使用IE来测试早期版本的IE如何处理该网站有用。 您可以通过在F12工具中更改它,在本地计算机上对其进行更改(而不是整个站点)。 用户(以及开发人员)可以通过单击URL字段中的兼容性视图图标来更改浏览器模式。 这也只适用于该机器,

...

有“边缘”模式。

My Web Page

Content goes here.

从链接的MSDN页面: 边缘模式告诉Windows Internet Explorer以可用的最高模式显示内容,这

...

迷人。 我相信这是开发人员工具中的一个错误。 “短”UA字符串仅应在IE9标准模式下发送到服务器。 无论文档模式如何,它都不适合JavaScript。 http://blogs.msdn.com/b/ie/archive/2010/03/23/introducing-ie9-s-user-agent-string.aspx 我怀疑这里的问题是开发人员工具尝试设置UA字符串的方式(出于模拟目的)也会影响本地JavaScript UA字符串。 Fascinating. I believe that's

...

尝试添加

记录HEAD。 这使得IE在标准文档模式下工作以用于最新的IE模式。 Try adding

to document HEAD. This makes IE work in standart document mode for latest IE mode.

如果您有权访问该代码: 在你的JavaScript文件引用中添加一个查询字符串,如下所示:

每次你更改js文件时,将v值更改为其他内容,就像浏览器会觉得这是一个新文件并将获得它。 If you have access to the code: In you javascript file reference add a query string, somethin

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值