How to set IE document mode?

后端 未结 3 1155
花落未央
花落未央 2021-02-08 02:26

In IE9 my browser has set:

F10 -> tools -> compatibility views setting -> added 192.168.10.227

therefore when I try to serve file, the browser mode is 9 compat v

相关标签:
3条回答
  • 2021-02-08 02:51

    I believe you need to include

    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
    

    Edit

    Also I would include a

    <meta charset="utf-8" />
    

    or what ever charset your using. Also moving these to the top of the head would make a difference as well.

    0 讨论(0)
  • 2021-02-08 02:55

    But according to IE DEv Center ,

    In addition, do not use an "X-UA-Compatible" meta tag on the page or send a custom HTTP header from the web server.

    To force a webpage you are viewing in Internet Explorer 10 into a particular document compatibility mode, first open F12 Tools by pressing the F12 key. Then, on the Browser Mode menu, click Internet Explorer 10, and on the Document Mode menu, click Standards.

    0 讨论(0)
  • 2021-02-08 02:57

    i think you should also add <!doctype html> check this post out Forcing Internet Explorer 9 to use standards document mode

    0 讨论(0)
提交回复
热议问题