IE的css hack

#element {
  color:orange;
}

#element {
  *color: white;
} /* IE6+7, doesn’t work in IE8/9 as IE7 */

#element {
  _color: red;
} /* IE6 */

#element {
  color: green\0/IE8+9;
} /* IE8+9 */

#element {
  color: green\0/IE8;
} /* IE8 */

:root #element {
  color:pink \0/IE9;
} /* IE9 */

posted @ 2016-06-07 17:33  刘镇维  阅读(152)  评论(0编辑  收藏  举报