2

I read from all over the internet that to disable IE 11 compatibility mode is just put a snippet of code:

<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />

just directly under <head> tag. But when I tested it in IE 11 with compatibility mode (document mode) set to IE 7, the page still breaks. Is there something I'm missing here?

Chen Li Yong
  • 5,459
  • 8
  • 58
  • 124
  • Do you have "Display Intranet sites in Compatibility View" checked in tools? If IE thinks you're on the intranet, it will ignore this line regardless according to comment on top answer: http://stackoverflow.com/questions/6348959/how-to-disable-compatibility-view-in-ie – Derek Story Mar 20 '15 at 03:18
  • @dwreck08 I use hosts file to redirect a seemingly ordinary internet address ex:`www.example.org/index.html` to localhost. Is that counted as accessing local intranet too by IE? – Chen Li Yong Mar 20 '15 at 03:23
  • @dwreck08 the "Display Intranet sites in Compatibility View" is checked by the way. – Chen Li Yong Mar 20 '15 at 03:28
  • I don't know the answer, but you can try unchecking in case IE thinks it is intranet. Also, be sure your doctype is set to ` `. – Derek Story Mar 20 '15 at 03:28

0 Answers0