2011-03-19 17 views

Respuesta

8

Sí, esto es bastante fácil con CSS puro, aunque IE6, si mal no recuerdo, no admite :hover en ningún elemento excepto en a. Pero el siguiente debería funcionar consistentemente en otros navegadores:

div { 
    background: #fff url(path/to/image.png) 0 0 no-repeat; 
} 

div:hover { 
    background: #ffa url(path/to/hoverImage.png) 0 0 no-repeat; 
} 
+0

Sí, esto funciona. Gracias – Selvin

Cuestiones relacionadas