IE下条件注释使用

来源:互联网 发布:手写字体软件 编辑:程序博客网 时间:2024/05/21 09:51

IE下条件注释
本文内容来源:http://www.quirksmode.org/css/condcom.html

<p class="accent"><!--[if IE]>According to the conditional comment this is IE<br /><![endif]--><!--[if IE 6]>According to the conditional comment this is IE 6<br /><![endif]--><!--[if IE 7]>According to the conditional comment this is IE 7<br /><![endif]--><!--[if IE 8]>According to the conditional comment this is IE 8<br /><![endif]--><!--[if IE 9]>According to the conditional comment this is IE 9<br /><![endif]--><!--[if gte IE 8]>According to the conditional comment this is IE 8 or higher<br /><![endif]--><!--[if lt IE 9]>According to the conditional comment this is IE lower than 9<br /><![endif]--><!--[if lte IE 7]>According to the conditional comment this is IE lower or equal to 7<br /><![endif]--><!--[if gt IE 6]>According to the conditional comment this is IE greater than 6<br /><![endif]--><!--[if !IE]> -->According to the conditional comment this is not IE 5-9<br /><!-- <![endif]--></p>
0 0
原创粉丝点击