How to prevent IE9 from rendering intranet sites in compatibility mode

后端 未结 4 943
刺人心
刺人心 2020-12-08 19:49

IE9 has a weird problem where it renders intranet sites in compatibility mode.

Does anyone know a way how to prevent this from happening?

Note: I am not loo

4条回答
  •  佛祖请我去吃肉
    2020-12-08 20:31

    After an exhaustive search, I found out how to successfully prevent an intranet site from rendering in compatibility mode in IE9 on this blog:

    From Tesmond's blog

    There are 2 quirks in IE9 that can cause compatibility mode to remain in effect. The X-UA-Compatible meta element must be the first meta element in the head section. You cannot have condtional IE statements before the X-UA-Compatible meta element. This means that if you use Paul Irish's wonderful HTML5 Boilerplate then on an Intranet with default IE9 settings your website will display in compatibility mode. You need to change the start of the boilerplate from the following:-

    
    
    
    
      
    
    
    
    

    to:

    
    
    
    
    
    

提交回复
热议问题