Site broken IE11 in windows 8 - goes to Enterprise mode

那年仲夏 提交于 2020-02-25 09:49:48

问题


Our site is breaking real bad in IE11. What's happening is that it goes into "Document Mode" 5 (Default) and Browser profile is forced as Enterprise.

As soon as I change Enterprise to Desktop, the site is all good.

Is there any way, I can force my site not to go to Enterprise and/or Use Edge as document mode ?

I have tried following but nothing worked:-

putting this right after

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

changing Doctype as :-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

and

<!DOCTYPE html>

P.S. My server is Suse Linux and I am not allowed to make any change in it. Only changes I can do are in my site or htaccess.


回答1:


You need to figure out why your site is in Enterprise Mode. Here are the possibilities I know of, and their respective solutions:

  • Whoever runs the domain your computer is on has set up an Enterprise Mode site list with your site included as requiring Enterprise Mode. To fix this, you'll need to contact that person and get them to exclude your site.
  • You have chosen to load your page in Enterprise Mode by going to the tools menu and clicking "Enterprise Mode". This is good because it means the users of your site shouldn't be seeing the same issue. The fix is to hit that same menu option again on your site, and it should be taken out of Enterprise Mode.



回答2:


Try Using this in your code as IE 11 Enterprise mode emulates IE 8.

This will solve your design issues.

<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>




回答3:


If your site is an intranet site, you can go to settings -> Compatibility View settings and then remove the check for "Display Intranet sites in Comparability View".

Or testing this with my site (I have been having a very similar issue), Make sure that your site is not on the compatibility view list on the same screen as the checkbox.




回答4:


To verify if your computer or user account are affected by Internet Explorer Enterprise mode, you will have to dig into the Registry.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode

You might see two REG_SZ values here, Enable and SiteList.

If the above values exist, Enterprise Mode is enabled on your machine. The reverse is also true. If the above mentioned Registry keys do not exist, you are not affected by Enterprise Mode.

To see which sites are forced into Enterprise Mode, you can open the XML file that is the data value of SiteList. Now you can speak to your IT guys about getting the site list amended.

For more details about Enterprise mode, here are the definitive articles from Microsoft.



来源:https://stackoverflow.com/questions/33108014/site-broken-ie11-in-windows-8-goes-to-enterprise-mode

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