How to prevent IE9 from rendering intranet sites in compatibility mode

后端 未结 4 945
刺人心
刺人心 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:33

    This can be done by adding a simple meta tag

    
    

    Another way to accomplish this is to add this code to your .htaccess file!

    # ----------------------------------------------------------------------
    # Better website experience for IE users
    # ----------------------------------------------------------------------
    
    # Force the latest IE version, in various cases when it may fall back to IE7 mode
    #  github.com/rails/rails/commit/123eb25#commitcomment-118920
    # Use ChromeFrame if it's installed for a better experience for the poor IE folk
    
    
      Header set X-UA-Compatible "IE=Edge,chrome=1"
      # mod_headers can't match by content-type, but we don't want to send this header on *everything*...
      
        Header unset X-UA-Compatible
      
    
    

提交回复
热议问题