Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/04/2011, 15:57
cuideru
 
Fecha de Ingreso: febrero-2007
Mensajes: 109
Antigüedad: 17 años, 2 meses
Puntos: 1
Respuesta: Condicional FF

Cita:
Iniciado por jomaruro Ver Mensaje
Hola:

Lamento decirte que los condicionales funcionan exclusivamente en Explorer.

Saludos.

Sin embargo he visto un post "Lista de comentarios condicionales CSS" de este mismo grupo donde pusieron además un ejemplo donde un texto se veía rojo en IE y negro en FF. Lo he copiado y he podido comprobar que efectivamente sucede lo que dice.

Pongo el ejemplo:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
a {color: black;}
</style>
<!--[if FF]><style>a {color: red;}</style><![endif]-->
<!--[if Opera]><style>a {color: red;}</style><![endif]-->
<!--[if IE]><style>a {color: red;}</style><![endif]-->
</head>
<body>
<a href="#">Enlace</a>
</body>
</html>