首页 > Web开发 > 详细

针对ie的css hack

时间:2017-09-14 13:04:26      阅读:345      评论:0      收藏:0      [点我收藏+]
/* IE9 , IE10 ,IE11 */
@media screen and (min-width:0\0) {
  /* IE9 , IE10 ,IE11 rule sets go here */
}
/*IE10*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  /* 
    IE10-specific styles go here 
    这种方式在预览版的IE11中也生效
 */ } /*IE9*/ body{   background-color:blue\9\0; /*仅IE9支持;*/ } /*IE8*/ body{   background-color: blue;  /* all browsers */   background-color: red\0/;  /* IE8 only */   background-color: red\9;  /* IE8 and below */ } /*IE7*/ body{   background-color: blue; /* all browsers */   *background-color: red; /* IE7 and below */ } /*IE6*/ body{   background-color: blue; /* all browsers */   _background-color: red; /* IE6 specifically */ }

针对ie的css hack

原文:http://www.cnblogs.com/xuepei/p/7519987.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!