Boas pessoal....
Tenho o seguinte codigo CSS:
.butao { background:url(geral/images/bt_init.gif) no-repeat; color:#FFFFFF; font: 10px Verdana, Tahoma, Courier New;}
.butao:hover{ background:url(geral/images/bt_hover.gif) no-repeat;}
.butao:active {background:url(geral/images/bt_active.gif) no-repeat;}
Este código no Firefox, funciona às mil maravilhas, acontece que no IE nem se mexe... o hover não funciona!
Pesquisei um pouco e encontrei uma póssivel solução, mas ao tentar implementar não deu nada na mesma......
a solução passava por:
.butao:hover, butao.hover { back...
e inserir as seguintes linhas de código:
/* Micox Pseudo-class-css2 to IE (MXPC). Activate .hover and .first-child in IE 6
Deixe isto ao final de tudo do seu CSS pois o Webkit não interpreta nada mais abaixo do expression
*/
* html * { color: expression( (function(who){ if(!who.MXPC){
who.MXPC = '1';
if(who.nodeName != 'A'){
who.onmouseenter=function(){ who.className += ' hover'};
who.onmouseleave=function(){ who.className = who.className.replace(' hover','')}; }
(who==who.parentNode.firstChild) ? who.className += ' first-child' : '' ;
} } )(this) , 'auto') }
[in: http://elmicox.blogspot.com/2008/03/ativando-hover-e-first-child-no-ie-6-um.html ]
eles indicavam para o colocar no final do CSS... acontece que nem no final nem no inicio!! não funciona! :S
Alguém me poderia dar uma dica!??!
Vou continuar a pesquisa...
Obrigado
Tenho o seguinte codigo CSS:
.butao { background:url(geral/images/bt_init.gif) no-repeat; color:#FFFFFF; font: 10px Verdana, Tahoma, Courier New;}
.butao:hover{ background:url(geral/images/bt_hover.gif) no-repeat;}
.butao:active {background:url(geral/images/bt_active.gif) no-repeat;}
Este código no Firefox, funciona às mil maravilhas, acontece que no IE nem se mexe... o hover não funciona!
Pesquisei um pouco e encontrei uma póssivel solução, mas ao tentar implementar não deu nada na mesma......
a solução passava por:
.butao:hover, butao.hover { back...
e inserir as seguintes linhas de código:
/* Micox Pseudo-class-css2 to IE (MXPC). Activate .hover and .first-child in IE 6
Deixe isto ao final de tudo do seu CSS pois o Webkit não interpreta nada mais abaixo do expression
*/
* html * { color: expression( (function(who){ if(!who.MXPC){
who.MXPC = '1';
if(who.nodeName != 'A'){
who.onmouseenter=function(){ who.className += ' hover'};
who.onmouseleave=function(){ who.className = who.className.replace(' hover','')}; }
(who==who.parentNode.firstChild) ? who.className += ' first-child' : '' ;
} } )(this) , 'auto') }
[in: http://elmicox.blogspot.com/2008/03/ativando-hover-e-first-child-no-ie-6-um.html ]
eles indicavam para o colocar no final do CSS... acontece que nem no final nem no inicio!! não funciona! :S
Alguém me poderia dar uma dica!??!
Vou continuar a pesquisa...
Obrigado