0

私はこのスクリプトを作成しました:

$("#comments .comment .links").hide();
$("#comments .comment").hover(
    function() { $(".links", this).stop(true).slideDown(300); },
    function() { $(".links", this).stop(true).slideUp(300); }
);

今、私は問題を抱えています。コメントの div にカーソルを合わせると。そして、私は数回ホバリングします。その .links div は表示されなくなりました。div が完全に開いていません。

どうすれば修正できますか?

4

2 に答える 2

1

少し変更すると、これがあります。

$("#comments .comment .links").hide();
$("#comments .comment").hover(
    function() { $(".links", this).stop(true, true).slideDown(300); },
    function() { $(".links", this).stop(true, true).slideUp(300); }
);​
于 2012-05-09T12:32:36.600 に答える
1

これを試して

$("#comments .comment .links").hide();
$("#comments .comment").hover(
    function() { $(".links", this).not(":animated").slideDown(300); },
    function() { $(".links", this).not(":animated").slideUp(300); }
);

また

$("#comments .comment .links").hide();
$("#comments .comment").hover(
    function() { 
                  $(".links", this).stop(true, true).slideToggle();
               }
);
于 2012-05-09T11:23:15.287 に答える