Problem with jQuery mouseleave firing when container has select box

后端 未结 9 2182
一整个雨季
一整个雨季 2021-02-13 23:47

I have a two containers -- one is nested inside of another. When I hover over the parent, I want the child container to appear. When I mouseout, I want the child container to f

9条回答
  •  别跟我提以往
    2021-02-13 23:59

    If you don't mind having the fade not working in some old browsers, you could do it with CSS quickly:

    #parent-container {  }
    #child-container {
        opacity:0;
        -webkit-transition:opacity 1s ease-in;
           -moz-transition:opacity 1s ease-in;
    }
    #parent-container:hover #child-container {{
        opacity:1;
        -webkit-transition:opacity 1s ease-out;
           -moz-transition:opacity 1s ease-out;
    }
    

提交回复
热议问题