Empty div hover event not firing in IE

后端 未结 13 1206
灰色年华
灰色年华 2020-12-08 08:52

I have a div with a child div inside it. I\'m using jQuery to show / hide the child div whenever a mouse hovers over the parent div (parent div spans the entire bottom of th

13条回答
  •  孤城傲影
    2020-12-08 08:54

    If you don't have to support IE6. In your graphics program (Photoshop) create a 1x1 image of a white box. Reduce the opacity to 1%. Save as a PNG24 or GIF. Then, make this the background image for the transparent DIV.

    This takes care of the issue and preserves the opacity of any child elements.

提交回复
热议问题