Jump to content

Recommended Posts

Posted

é em css. mas nao estou a conseguir porque tenho isto

pagina html

 <a title="" href="iframe/V2 - Laranja/V2-Laranja.html"><img alt="" class="img" src="iframe/V2 - Laranja/images/foto alt 1 min 2.jpg"/></a>

pagina css

.img a:hover {
background:url(iframe/V2%20-%20Laranja/images/2011_10_19EOS%2060D4814.jpg);

}
Posted

o css está errado:

img a:hover {}

não pode haver elementos "filho" de img dado que img é um elemento fechado em si próprio, tal como <br>, <hr>, etc.

deveria ser:

a:hover {}

eu usaria uma classe para separar o comportamento de outros links:

a.minhaclasse:hover {}

ou apenas

.minhaclasse:hover {}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.