CSS note-in addition to the tag, the content of the hover attribute is brief: The following may be very simple for most netizens, but I do not know it. There is a piece of HTML like this: div a href = # IMG alt = I am an IMG src1_img.jpg // A/Div. Generally, the CSS pseudo class hover may be very simple for most netizens to write the following code, but I do not know.
There is a piece of HTML like this:
<Div>
<A href = "#">
</A>
</Div>
Generally, the CSS pseudo-class hover does not work for tags other than the tag (FF browser can work, IE6 cannot ):
IMG: hover {
Border: 1px solid #000;/* FF is effective, and IE6 is ineffective */
}
Such a good pseudo-class is really a waste !! However, there is actually a way to implement the hover function of a non-a tag, as written below:
A: hover IMG {
Border: 1px solid #000;/* it can be understood as the IMG label in a on it */
}
^ 0 ^ it's easy to implement. You don't need to edit the troublesome JS statement!
From: http://syue.com/edu/Web/CSS/12683.html