Hola buenas!!
Al poner <!--[if IE 7]> m toma consideracion IE8 tb, como puedo hacer para q un estilo m cambie entre un navegador y otro?? se trata de un margin. Los hack de first-child tampoco m estan colando...
| |||
| Comentario para IE8 Hola buenas!! Al poner <!--[if IE 7]> m toma consideracion IE8 tb, como puedo hacer para q un estilo m cambie entre un navegador y otro?? se trata de un margin. Los hack de first-child tampoco m estan colando... |
| |||
| Respuesta: Comentario para IE8 Por qué no pruebas a usar un selector en JavaScript? A mi me ahorra problemas...
Código:
Espero que te sirva!<script language="JavaScript">
<!--
if(navigator.userAgent.match("Safari")) {
document.write('<link href="css/estilo.css" rel="stylesheet" type="text/css" />');
}
if(navigator.userAgent.match("Firefox")) {
document.write('<link href="css/mozilla.css" rel="stylesheet" type="text/css" />');
}
if(navigator.userAgent.match("IE 8")) {
document.write('<link href="css/ie8.css" rel="stylesheet" type="text/css" />');
}
if(navigator.userAgent.match("IE 7")) {
document.write('<link href="css/ie7.css" rel="stylesheet" type="text/css" />');
}
//-->
</script>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
|
| |||
| Respuesta: Comentario para IE8 Si sólo lo quieres para un margin en concreto te recomiendo que le pongas la almoadilla delante. Ejemplo: margin-left: 10px (esto en ffx, ie8, chrome...) #margin-left: 15px (ie7, ie6) _margin-left: 5px; (ie6) Espero que te sirva ;) |
| Etiquetas: |