Modificar estilos según el navegador
Dependiendo de qué navegador, debemos utilizar un hack u otro para que ejecute el código (se incluye Internet Explorer aunque como recordamos, ya publicamos esto en anteriores entradas):
IE 6 y versiones anteriores
* html {}
IE 7 y versiones anteriores
*:first-child+html {} * html {}
IE 7
*:first-child+html {}
IE 7 y varios navegadores modernos
html>body {}
Todos los navegadores modernos menos IE7
html>/**/body {}
Opera 9 y versiones anteriores
html:first-child {}
Safari
html[xmlns*=""] body:last-child {}
pagina residente http://www.cssblog.es/estilos-solo-para-determinados-navegadores/#idc-container
No hay comentarios:
Publicar un comentario