Empty div hover event not firing in IE

后端 未结 13 985
灰色年华
灰色年华 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 09:17

    I know that the question has been answered but I encountered the same problem. The empty div wouldn't fire the function. And if it had a border only the border itself would start the function. I tried lots of stuff, nothing helped. Here is my solution, it's pretty much the same only thing is that I didn't use an image. Add this to your CSS:

    div {             /* write the element's name, class or id here */
    background: #FFF; /* you can choose any colour you like, 1.0-fully visible */
    opacity:0.0;      /* opacity setting for all browsers except IE */
    filter: alpha(opacity = 0); /* opacity setting for IE, 0-transparent & 100-fully visible */
    }
    
    0 讨论(0)
提交回复
热议问题