目标IE6,IE7,IE8

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了目标IE6,IE7,IE8相关的知识,希望对你有一定的参考价值。

  1. IE8 and Below
  2.  
  3. The key to targeting Internet Explorer 8 and below, with a hack, is to append "9� to the end of your style. For example:
  4.  
  5. body {
  6. color: red; /* all browsers, of course */
  7. color : green9; /* IE8 and below */
  8. }
  9.  
  10. E7 and Below
  11.  
  12. we can use the * symbol to target IE7 and below, like so:
  13.  
  14. body {
  15. color: red; /* all browsers, of course */
  16. color : green9; /* IE8 and below */
  17. *color : yellow; /* IE7 and below */
  18. }
  19.  
  20. IE6
  21.  
  22. body {
  23. color: red; /* all browsers, of course */
  24. color : green9; /* IE8 and below */
  25. *color : yellow; /* IE7 and below */
  26. _color : orange; /* IE6 */
  27. }

以上是关于目标IE6,IE7,IE8的主要内容,如果未能解决你的问题,请参考以下文章

CSS 目标IE7(及以下)和IE6(特别是)没有条件注释

目标IE6和IE7浏览器没有条件注释

目标IE6和IE7浏览器没有条件注释

CSS 如何针对IE6,IE7和IE8

JS代码判断IE6,IE7,IE8,IE9!

CSS IE6,IE7,IE8的阴影和渐变填充