在CSS里判断浏览器的方法:
#example{POSITION: absolute;margin-left:6px;  }/*firefox,google Chrome,safari*/  
* html #example{POSITION: absolute;margin-left:-915px;  }/*ie6*/  
*+html #example{POSITION: absolute;margin-left:-915px;  }/*ie7*/  
使用地点:CSS中
判断IE版本:
<!--[if lte IE 6]>
 <LINK rel="stylesheet" type="text/css" href="images/style_IE5.css" />
<![endif]–> 
<!--[if IE 6]> 
 <LINK rel="stylesheet" type="text/css" href="images/style_IE6.css" />
<![endif]-->  
 
<!--[if IE 7]> 
 <LINK rel="stylesheet" type="text/css" href="images/style_IE7.css" />
<![endif]-->
 
适用浏览器:IE5以上的IE浏览器
使用技术:条件注释
使用地点:HTML代码中(要注意,这个不能在CSS里使用)
比较符说明:
lte:就是Less than or equal to的简写,也就是小于或等于的意思。
lt :就是Less than的简写,也就是小于的意思。
gte:就是Greater than or equal to的简写,也就是大于或等于的意思。
gt :就是Greater than的简写,也就是大于的意思。
! :就是不等于的意思,跟javascript里的不等于判断符相同