CSS常用Hack集合(adding)

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;
  }
}

 

你可能感兴趣的:(hack)