CSS中IE的IF条件使用注释
2008-10-17 12:26
561 查看
在CSS布局中,还常常用到IE Hack。
if IE条件注释的使用就起着很大的作用。
if IE什么意思呢?下面就列举了一些在CSS常见的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以及IE5.0以上版本都可以识别 <![endif]–>
<!–[if IE 6]> 仅IE6可识别 <![endif]–>
<!–[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]–>
<!–[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]–>
<!–[if IE 7]> 仅IE7可识别 <![endif]–>
<!–[if lt IE 7]> IE7以及IE7以下版本可识别 <![endif]–>
<!–[if gte IE 7]> IE7以及IE7以上版本可识别 <![endif]–>
if IE条件注释的使用就起着很大的作用。
if IE什么意思呢?下面就列举了一些在CSS常见的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以及IE5.0以上版本都可以识别 <![endif]–>
<!–[if IE 6]> 仅IE6可识别 <![endif]–>
<!–[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]–>
<!–[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]–>
<!–[if IE 7]> 仅IE7可识别 <![endif]–>
<!–[if lt IE 7]> IE7以及IE7以下版本可识别 <![endif]–>
<!–[if gte IE 7]> IE7以及IE7以上版本可识别 <![endif]–>
相关文章推荐
- (转)CSS布局参考 IE的If条件注释使用备忘
- 使用IE条件注释 实现兼容 IE, Opera, Firefox 的 DIV+CSS 表格布局 By shawl.qiu
- 不同版本IE使用不同css(css条件注释语句用法)
- <!--[if IE9]><![endif]--> IE 9 以下浏览器css,js过滤器【条件注释判断浏览器】
- IE的IF条件注释使用备忘
- 不同版本IE使用不同css(css条件注释语句用法)
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- css中使用if条件在各大浏览器(IE6\IE7\IE8)中hack方法解决教程
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- < !--[if IE]> < ![endif]--> 条件注释
- 【转】IE中的条件注释(<!--[if lt IE 7]><![endif]-->)
- 条件注释判断浏览器<!--[if lt IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- css 条件注释使用指南
- 条件注释判断浏览器版本<!--[if lt IE 9]>(转载)
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lt IE 6]><!--[if gte IE 6]>
- 条件注释判断浏览器<!--[if !IE]><!--[if IE]><!--[if lte IE 6]><!--[if gte IE 6]>
- 针对IE6、7、8条件注释语句(不同版本IE显示用不用css)