1. 程式人生 > >ie 的hack

ie 的hack

less ie7 ack ie8 class lte pre 裏的 com

  1. * 或 # ,IE7、IE11 支持。
  2. \9 ,IE8、IE9、IE11 支持。
  3. \0 ,IE8、IE9 支持。
  4. *、#、\9、\0 這幾個寫法除了IE外其他瀏覽器均不支持。

.all IE{property:value\9;}
.gte IE 8{property:value\0;}
.lte IE 7{*property:value;}
.IE 8/9{property:value\0;}
.IE 9{property:value\9\0;}
.IE 7{+property:value;}
.IE 6{_property:value;}
.not IE{property//:value;}

lte:就是Less than or equal to的簡寫,也就是小於或等於的意思。

lt :就是Less than的簡寫,也就是小於的意思。

gte:就是Greater than or equal to的簡寫,也就是大於或等於的意思。

gt :就是Greater than的簡寫,也就是大於的意思。

! :就是不等於的意思,跟javascript裏的不等於判斷符相同

ie 的hack