Div disappears when hovering the input autocomplete in Firefox

后端 未结 1 934
野趣味
野趣味 2021-01-19 03:52

I\'ve made up a JSFiddle.

It\'s a login form that appears when hovering the Sign In menu, but when hovering the input autocomplete the login form disappears, and I d

1条回答
  •  执念已碎
    2021-01-19 04:22

    Not a good solution, but a really useful hint: http://jsfiddle.net/ymDTj/2/

    Using JavaScript (jQuery):

    $('.login').on('mouseover', function () {
        $('.login_form', this).show();
    }).on('mouseout', function (e) {
        if (!$(e.target).is('input')) {
            $('.login_form', this).hide();
        }
    });
    

    0 讨论(0)
提交回复
热议问题