Páginas

terça-feira, 19 de julho de 2011

[CSS] CSS Hack

Bom seria se todos os navegadores interpretacem as linguagens da mesma maneira, mas como isso não acontece, temos que usar alguns macetes.

Internet Explorer 6
body {
   _background: #000000;
}

Internet Explorer 7
body {
   *background: #000000;
}

Internet Explorer 8
body {
   background /*\**/: #000000;
}

Mozilla Firefox
@-moz-document url-prefix() {
   body {
      background /*\**/: #000000;
   }
}

Google Chrome
@media screen and (-webkit-min-device-pixel-ratio:0) {
   body {
      background /*\**/: #000000;
   }
}

Nenhum comentário:

Postar um comentário