IE浏览器HTML Hack标签总结

这篇文章主要介绍了IE浏览器HTML Hack标签总结,写IE浏览器兼容CSS的时候会经常用到HTML Hack技术,本文总结到了IE9下的HTML Hack标签,需要的朋友可以参考下 代码如下:

<!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--> <!--[if IE]> 所有的IE可识别 <![endif]-->

<!--[if IE 5.0]> 只有IE5.0可以识别 <![endif]-->  <!--[if IE 5]> 仅IE5.0与IE5.5可以识别 <![endif]-->

<!--[if gt IE 5.0]> IE5.0以上版本都可以识别 <![endif]-->  <!--[if lt IE 6]> IE6以下版本可识别 <![endif]--> <!--[if IE 6]>this is ie6<![endif]-->

<!--[if gt IE 6]> IE6以上版本可识别 <![endif]-->  <!--[if lt IE 7]> IE7以下版本可识别 <![endif]-->  <!--[if IE 7]>this is ie7<![endif]--> 

<!--[if gt IE 7]> IE7以上版本可识别 <![endif]-->  <!--[if lt IE 8]> IE8以下版本可识别 <![endif]-->  <!--[if IE 8]>this is ie8<![endif]--> 

<!--[if gt IE 8]> IE8以上版本可识别 <![endif]-->  <!--[if lt IE 9]> IE9以下版本可识别 <![endif]--> 

<!--[if IE 9]>this is ie9<![endif]-->

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4