What is X-UA-Compatible when it references IE=edge,chrome=1?

前端 未结 2 1944
闹比i
闹比i 2020-12-24 02:14

I just saw this meta tag in the wild and was wondering it does and why it\'s used?

         


        
2条回答
  •  借酒劲吻你
    2020-12-24 02:29

    It's for Google's Chrome Frame browser add-on.

    ChromeFrame can be installed on various versions of IE (especially handy for older versions that don't play nicely with modern web features). It essentially runs the chrome browser inside of IE.

    In the case of the meta tag, IE should run in standards mode (most current edition "Edge") - and activate chrome frames if it exists.

    I usually do some conditional browser stuff for older versions of IE, allowing the user to install the add-on as an option.

    More here : chrome frame API

    (Keep in mind that Google Chrome Frame is no longer supported)

提交回复
热议问题