完整HACK代码:

select {
background-color
:cccccc\0;/* ie 8/9*/
background-color
:eeeeee\9\0;/* ie 9*/
*background-color
:#dddd00;/* ie 7*/
_background-color
:#CDCDCD;/* ie 6*/
}

其中:
background-color:cccccc\0;IE8和IE9都支持;
background-color:eeeeee\9\0; 仅IE9支持;

另外,background-color:eeeeee\9;的HACK支持IE6-IE8,但是IE8不能识别“*”和“_”的CSS HACK。

可综合上述规律灵活应用。


 

相关文章:

  • 2021-10-09
  • 2022-12-23
  • 2021-07-30
  • 2022-01-13
  • 2021-12-20
猜你喜欢
  • 2022-01-04
  • 2022-01-03
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
相关资源
相似解决方案