IE兼容性元标记之间的区别

时间:2016-03-10 10:08:22

标签: html internet-explorer meta

究竟是什么区别:

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

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

1 个答案:

答案 0 :(得分:1)

如果您在自己喜欢的搜索引擎中输入MSDN X-UA-Compatible,则会找到official documentation,其中包含:

  
 X-UA-Compatible value | Document modes
 ----------------------+---------------------------------------------------------
 E=11                  | IE11 mode
 IE=EmulateIE11        | IE11 mode (if a valid <!DOCTYPE> declaration is present)
                       | Quirks Mode (otherwise)