通过IE浏览器中的专有条件注释可有针对性的进行相关属性的定义。条件注释只能在windows Internet Explorer(以下简称IE)下使用,因此我们可以通过条件注释来为IE添加特别的指令。
我们可以通过条件注释来判断浏览器是否为IE。
css中判断IE浏览器的语句:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
解释语句如下:
gt = selects greater than(高于)
lt = selects less than(低于)
gte = selects greater than or equal to(>=)
lte = selects less than or equal to(<=)
! = selects everything except what directly follows the "!"(选择所有,除了!)