这些知识点网上很多,写的原因只是作为自己记录学习用。
<!--[if condition]> HTML <![endif]-->
下面是几个例子 (正好测试了一下baidu浏览器 1.3.2.171,发现它也认,My surprise!)
<!--[if IE]> (ie浏览器或者baidu的浏览器也能识别) <![endif]-->
<!--[if !IE]>除IE外都可识别<![endif]-->
<!--[if IE 6]> 仅IE6可识别 <![endif]-->
<!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]-->
- lte ---Less than or equal to 小于或等于
- lt ---Less than 小于
- gte ---Greater than or equal to 大于或等于
- gt ---Greater than 大于