(自己亲自试过有用)
针对IE9的CSS只需在相应CSS代码加入只有IE9识别的 \9\0。具体代码如下:
.div{ background-color:#0f0\9\0;/* ie9 */ }
其他浏览器写法:
background-color:#f00;/*all*/ 
background-color:#0ff\0;/* ie 8/9 */ 
background-color:#0f0\9\0;/* ie9 */ 
*background-color:#00f;/*ie7*/ 
_background-color:#ff0;/*ie6*/ 
background-color//:#090;/*非IE*/ 
background-color:#900\9;/*所有ie*/ 

 

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-08-28
  • 2022-01-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2021-10-09
相关资源
相似解决方案