BroswerMode/DocumentMode/CompatMode/ 浏览器模式,文档模式,渲染模式

33 篇文章 0 订阅

Reference:http://my.oschina.net/junn/blog/125982  

http://blog.csdn.net/jcx5083761/article/details/8284552 

         BorswerMode and DocumentMode are special,which used in IE(the documentmode is added from ie8).the value of the  formar include  5,7,8,9,10 correspond respectively to IE7,8,9,10. the documentmode value of IE6 is undefined. When you change the borswermode  ,   the documentMode will change accordingly. because the borswermodes have  default documentmode values .in addition, the useragent string sended to server will be changed.Conversely , the change of documentmode will not change the useragent string or borswermode,it just tell the trident (ie rendering engine) how to render and parse the page code,the page will refresh when you change it.

      "<meta http-equiv="x-ua-compatible" content="IE=7" />"  ,it tells the trident rending the page in documentmode ie7. the difference between "content="IE=7""  and  IE=EmulateIE7  ,is that the latter is rendering the page in compatible mode which  takes  account of the doctype statement.

      CompatMode values includes CSS1Compat and BackCompat,which every browser implemented.The CSS1Compat means the CSS rendering mode is standar mode,the backcompt indicates the doctype is quirks mode.The compatMode will influence the boxing mode .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值