码迷,mamicode.com
首页 > Web开发 > 详细

CSS常用Hack集合(adding)

时间:2015-07-10 09:15:52      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

1> IE9 and IE10

@media screen and (min-width: 0\0) {
  .p-form input.p-value[type="checkbox"],
  .p-form input.p-value[type="radio"],
  .p-default input[type="checkbox"],
  .p-default input[type="radio"] {
    height: 1.9em;
    width: 1.9em;
    margin: 0 8.1em 0 0em;
  }
}

 

2> IE10+ *::-ms-backdrop only ie11

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  *::-ms-backdrop, .p-form input.p-value[type="checkbox"],
  *::-ms-backdrop, .p-form input.p-value[type="radio"],
  *::-ms-backdrop, .p-default input[type="checkbox"],
  *::-ms-backdrop, .p-default input[type="radio"] {
    height: 0.9em;
    width: 0.9em;
    margin: 0 9.1em 0 0em;
  }
}

 

3> Safari3+, Chrome1+ 

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .p-form textarea.p-value,
  .p-default textarea {
    margin-bottom: 0em;
  }
}

 

4> FireFox

@-moz-document url-prefix() {
  .p-form textarea.p-value,
  .p-default textarea {
    height: 4.6em;
  }
}

 

CSS常用Hack集合(adding)

标签:

原文地址:http://www.cnblogs.com/zhtui/p/4618700.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!