IE9的css hack
2011-11-23 14:37 俊俊+ 阅读(1237) 评论(0) 收藏 举报1 |
select { |
2 |
background-color:red\0; /* ie 8/9*/ |
3 |
background-color:blue\9\0; /* ie 9*/ |
4 |
*background-color:#dddd00; /* ie 7*/ |
5 |
_background-color:#CDCDCD; /* ie 6*/ |
6 |
} |
注意写hack的顺序,其中:
- background-color:red\0;IE8和IE9都支持;
- background-color:blue\9\0; 仅IE9支持;
===============华丽的分割线===============
01 |
#element { |
02 |
color:orange; |
03 |
} |
04 |
#element { |
05 |
*color: white; /* IE6+7, doesn't work in IE8/9 as IE7 */ |
06 |
} |
07 |
#element { |
08 |
_color: red; /* IE6 */ |
09 |
} |
10 |
#element { |
11 |
color: green\0/IE8+9; /* IE8+9 */ |
12 |
} |
13 |
:root #element { color:pink \0/IE9; } /* IE9 */ |

浙公网安备 33010602011771号