How to bring back “Browser mode” in IE11?

后端 未结 8 951
北荒
北荒 2020-11-28 19:45

UPDATE: The old question applies only to IE11 preview; browser mode had returned in final release of IE11. But there is a catch: it is next to useless, beca

8条回答
  •  [愿得一人]
    2020-11-28 20:30

    You can work around this by setting the X-UA-Compatible meta header for the specific version of IE you are debugging with. This will change the Browser Mode to the version you specify in the header.

    For example:

    
    

    In order for the Browser Mode to update on the Developer Tools, you must close [the Developer Tools] and reopen again. This will switch to that specific version.

    Switching from a minor version to a greater version will work just fine by refreshing, but if you want to switch back from a greater version to a minor version, such as from 9 to 7, you would need to open a new tab and load the page again.

    Here's a screenshot:

    enter image description here

提交回复
热议问题