常常會看到某些網站的框架中會用到 <!--[if IE7]><![endif]--> 等語句,今天特地查閱了下它們的區別:框架
<!--[if IE]>全部的IE可識別<![end if]--> <!--[if !IE]>除IE外都能識別<![end if]--> <!--[if lt IE6]>IE6如下版本可識別<![endif]--> <!--[if lte IE6]>IE6以及IE6如下版本可識別<![endif]--> <!--[if gt IE6]>IE6以上版本可識別<![endif]--> <!--[if gte IE6]IE6以及IE6以上版本可識別<![endif]-->
!: 表明不等於; lt: less than,小於; lte: less than or equal to,小於或等於; gt: greater than,大於 gte: greater than or equal to,大於或等於