英寸×UA兼容"含量=" IE = 9; IE = 8; IE = 7; IE = EDGE" [英] "X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"

查看:100
本文介绍了英寸×UA兼容"含量=" IE = 9; IE = 8; IE = 7; IE = EDGE"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < meta http-equiv =X-UA-Compatiblecontent =IE = 9; IE = 8; IE = 7; IE = EDGE/> 




  1. 实际上这句话的含义是什么?,来分离IE版本,而一些例子使用 ; ;这是正确的吗?


  2. 订单 IE = 9; IE = 8; IE = 7; IE = EDGE 有一定的重要性,我希望知道。

  3. 编辑:我使用<!DOCTYPE html>

    解决方案

    如果您支持IE浏览器,对于Internet Explorer 8及以上版本,请执行以下操作:

     < meta http-equiv = X-UA-Compatiblecontent =IE = 9; IE = 8; IE = 7/> 

    强制浏览器呈现特定版本的标准。它不支持IE7及以下版本。



    如果使用分号分隔,它会为不同版本设置兼容级别。例如:

     < meta http-equiv =X-UA兼容content =IE = 7; IE = 9/> 

    将IE7和IE8渲染为IE7,但将IE9渲染为IE9。它允许不同级别的向后兼容性。但在现实生活中,您应该只选择其中一个选项:

     < meta http-equiv =X-UA -Compatiblecontent =IE = 8/> 

    这可以使测试和维护更加简单。尽管通常使用Emulate的更有用的版本:

     < meta http-equiv =X-UA兼容 content =IE = EmulateIE8/> 

    为此:

     < meta http-equiv =X-UA-Compatiblecontent =IE = Edge/> 

    无论最新版本的标准如何,它都会强制浏览器呈现渲染。

    有关详细信息,有很多关于MSDN的信息


    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
    

    1. Actually what is the meaning of this statement ?

    2. Some of the examples use , to separate versions of IE, while some use ;; which is correct?

    3. The order IE=9; IE=8; IE=7; IE=EDGE has some importance, I wish to know that.

    Edit: I am using <!DOCTYPE html>

    解决方案

    If you support IE, for versions of Internet Explorer 8 and above, this:

    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7" />
    

    Forces the browser to render as that particular version's standards. It is not supported for IE7 and below.

    If you separate with semi-colon, it sets compatibility levels for different versions. For example:

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

    Renders IE7 and IE8 as IE7, but IE9 as IE9. It allows for different levels of backwards compatibility. In real life, though, you should only chose one of the options:

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

    This allows for much easier testing and maintenance. Although generally the more useful version of this is using Emulate:

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

    For this:

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

    It forces the browser the render at whatever the most recent version's standards are.

    For more information, there is plenty to read about on MSDN,

    这篇关于英寸×UA兼容&QUOT;含量=&QUOT; IE = 9; IE = 8; IE = 7; IE = EDGE&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆