IE11 document mode 7 issue on a website on one server but not so on another server

不想你离开。 提交于 2019-12-08 08:18:52

问题


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:


回答1:


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?.



来源:https://stackoverflow.com/questions/46627479/ie11-document-mode-7-issue-on-a-website-on-one-server-but-not-so-on-another-serv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!