延迟()不起作用

时间:2011-11-25 16:17:41

标签: jquery

我在这段代码中使用了delay()但它不起作用......

   $j(function(){
      $j(".select-plan #container ul li").hover(function(){
         $j(this).find(".checkout-pop-out").delay(500).stop(true, true).fadeIn(200);
      },function(){
         $j(this).find(".checkout-pop-out").stop(true, true).fadeOut(200);
      });
    });

我该如何解决这个问题? 感谢

1 个答案:

答案 0 :(得分:0)

.delay()用于动画首先停止动画,然后使用fadeIn延迟,尝试

   $(function(){
      $(".select-plan #container ul li").hover(function(){
         $(this).find(".checkout-pop-out").stop(true, true).delay(500).fadeIn(200);
      },function(){
         $(this).find(".checkout-pop-out").stop(true, true).fadeOut(200);
      });
    });
相关问题