IE11文档模式7在一台服务器上的网站上发布,但在另一台服务器上则不然 [英] IE11 document mode 7 issue on a website on one server but not so on another server

查看:633
本文介绍了IE11文档模式7在一台服务器上的网站上发布,但在另一台服务器上则不然的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE 11 上,当我们浏览部署在 Windows Server 2012上的网站 R2),网站正确显示其主页(如下图1所示)。但如果完全相同的网站部署在 windows Sever 2012 R2 的另一台服务器上,并在IE11上浏览它,则显示完全搞砸了如下图2所示。如果我们在第二个网站上使用IE Developer工具( F12 ),我们会在工具的控制台选项卡上收到以下错误,但是当我们执行F12时没有这样的错误来自第一台服务器的网站。这使我们相信这与安装网站的服务器有关。我们尝试了



从IE11到精确时相同的webswite在Windows 2012 R2服务器上



解决方案

可以尝试添加< meta http-equiv =X-UA-Compatiblecontent =IE = edge/ < head>< / head> 。> 问题和她一样e IE11文档模式默认为IE7。如何重置?


On IE 11, when we browse through our website that is deployed on Windows Server 2012 (not R2), the website correctly displays its home page (as shown in figure 1 below). But if the exact same website is deployed on another server that is windows Sever 2012 R2, and browse through it on IE11, it displays completely messed up as shown in figure 2 below. If we use IE Developer tool (F12) on second website, we get the following error on the console tab of the tool, but there is no such error when we do F12 on the website from the first server. This leads us to believe that this is something to do with the servers where the website is installed. We tried a suggested solution to this post but no success. Question: What are the possible causes and how can we remedy them? Website is using Bootstrap 1.3.

The attached page targets document mode 7. some console apis and features may not be available.

From IE11 when the webswite is on Windows 2012 server:

From IE11 when the exact same webswite is on Windows 2012 R2 server:

解决方案

May be you can try to add <meta http-equiv="X-UA-Compatible" content="IE=edge" /> in <head></head>.

I suppose the problem is the same as here IE11 Document mode defaults to IE7. How to reset?.

这篇关于IE11文档模式7在一台服务器上的网站上发布,但在另一台服务器上则不然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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