1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

IE中if条件的使用-if条件css使用方法

Discussion in '前端开发' started by taobxj, Nov 6, 2012.

  1. taobxj

    taobxj New Member

    Joined:
    Sep 6, 2012
    Messages:
    126
    Likes Received:
    0
    可以说if条件是针对于ie内核开发的。而ie浏览器在国内的用户范围占了近8层。所以if条件的运用广大网页设计者是必须要了解的哦!

    使用规则说明如下:

    <!--[if IE]> Only IE <![endif]-->
    所有的IE可识别
    <!--[if IE 5.0]> Only IE 5.0 <![endif]-->
    只有IE5.0可以识别
    <!--[if gt IE 5.0]> Only IE 5.0+ <![endif]-->
    IE5.0包换IE5.5都可以识别
    <!--[if lt IE 6]> Only IE 6- <![endif]-->
    仅IE6可识别以内的css样式
    <!--[if gte IE 6]> Only IE 6/+ <![endif]-->
    IE6以及IE6以下的IE5.x都可识别
    <!--[if lte IE 7]> Only IE 7/- <![endif]-->
    全文地址:mmtok.com/thread-46-1-1.html