简体   繁体   中英

<meta http-equiv=“X-UA-Compatible” content=“IE=Edge” /> is not working in IE 11

In our application we are using <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> as the first line of code inside <head> tag. In Local and QA it is working fine, but when we try to open PROD in IE we are facing some problem - it is opening in document mode 7. In IE EDGE it is working fine, we are facing this issue in IE 11.

What might be the problem?

If:

  • The production environment is in the Intranet zone (right-click and then choose Properties), and
  • The page does not contain a <!DOCTYPE> directive, and
  • The Default settings have not been changed

( Other factors may also be involved.)

Then, the page is likely loading in IE7 Compatibility mode by design .

If you cannot change the page to include the HTML5 doctype directive ( <!DOCTYPE html> ), then you might see if the web server can serve the x-ua-compatible header with the page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM