show/hide a div on hover and hover out

后端 未结 6 636
梦谈多话
梦谈多话 2020-12-08 10:27

I would like to show and hide a div during hover and hover out.

here\'s what I\'ve done lately.

css

6条回答
  •  天命终不由人
    2020-12-08 10:34

    Why not just use .show()/.hide() instead?

    $("#menu").hover(function(){
        $('.flyout').show();
    },function(){
        $('.flyout').hide();
    });
    

提交回复
热议问题