How to force IE10 to render page in IE9 document mode

前端 未结 9 732
北恋
北恋 2020-12-24 07:27

I have two questions:

  1. How can I force IE10 to render in IE9 document mode? Currently it\'s rendering my page in Standard document mode.

  2. In I

相关标签:
9条回答
  • 2020-12-24 07:57

    there are many ways can do this:

    add X-UA-Compatible tag to head http response header

    using IE tools F12

    change windows Registry

    0 讨论(0)
  • 2020-12-24 07:58

    I haven't seen this done before, but this is how it was done for emulating IE 8/7 when using IE 9:

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
    

    If not, then try this one:

    <meta http-equiv="X-UA-Compatible" content="IE=9">
    

    Add those to your header with the other meta tags. This should force IE10 to render as IE9.

    Another option you could do (assuming you are using PHP) is add this to your .htaccess file:

    Header set X-UA-Compatible "IE=9"
    

    This will perform the action universally, rather than having to worry about adding the meta tag to all of your headers.

    0 讨论(0)
  • 2020-12-24 08:01

    You can force IE10 to render in IE9 mode by adding:

    <meta http-equiv="X-UA-Compatible" content="IE=9">

    in your <head> tag.

    See MSDN for more information...

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