<!--[if IE 6]><![endif]-->等语句含义
2017-04-17 09:53
337 查看
经常会看到某些网站的框架中会用到
!: 代表不等于;
lt: less than,小于;
lte: less than or equal to,小于或等于;
gt: greater than,大于
gte: greater than or equal to,大于或等于
相关参考资料:
https://css-tricks.com/how-to-create-an-ie-only-stylesheet/
IE6以及IE6以下版本的两种写法:
另一例子(来源:https://www.quirksmode.org/css/condcom.html):
更多参考资料看查看:
https://www.sitepoint.com/web-foundations/internet-explorer-conditional-comments/
<!--[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,大于或等于
相关参考资料:
https://css-tricks.com/how-to-create-an-ie-only-stylesheet/
IE6以及IE6以下版本的两种写法:
另一例子(来源:https://www.quirksmode.org/css/condcom.html):
更多参考资料看查看:
https://www.sitepoint.com/web-foundations/internet-explorer-conditional-comments/
相关文章推荐
- IE下标签自动判断IE版本的语句<!--[if lte IE 6]> <![endif]-->
- IE下判断IE版本的代码语句<!--[if gte IE 6]> Only IE 6和以上版本 <![endif]-->
- <!--[if IE]>….<![endif]-->创建IE各版本专属CSS IE中的if语句
- HTML中IE条件注释判断语句(<!--[if XX IE X]><![endif]-->)
- IE下判断IE版本的代码语句<!--[if gte IE 6]> Only IE 6和以上版本 <![endif]-->
- 判断IE版本的HTML语句详解<!--[if IE]> <![endif]--> - AnswerCard
- 通过HTML条件注释判断IE版本的HTML语句详解<!--[if IE]> <![endif]-->
- 判断IE版本的HTML语句详解<!--[if IE]> <![endif]-->
- <!–[if lte IE 6]>……<![endif]–>
- <!--[if IE]>….<![endif]--> (<!--[if !IE]>||<![endif]-->)的用法
- <!--[if IE]>....<![endif]-->详解
- [if IE 6]>与<![endif]
- &lt;!--[if IE]&gt;….&lt;![endif]--&gt; (&lt;!--[if !IE]&gt;||&lt;![endif]--&gt;)
- <!--[if IE]>….<![endif]-->&…
- < !--[if IE]> < ![endif]--> 条件注释
- [Asp.Net]<!--[if IE]>....<![endif]-->详解
- <!--[if !IE]><![endif]-->解释
- <!--[if IE]>...<![endif]--> (<!--[if !IE]>...) IE浏览器中的条件注释
- ie中的条件注释<!--[if IE]><![endif]-->
- IE中的条件注释(<!--[if lt IE 7]><![endif]-->)