0
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$(this).find(".itemname").hide();
$(".productborder").mouseover(function(){
$(this).find(".itemname").animate({right:'160px'},"fast");
$(this).find(".itemname").show();
$(".productborder").mouseleave(function(){
$(this).find(".itemname").animate({right:'0px'},"fast");
$(".itemname").fadeOut(300);
});
});
});
</script>
<html>
<div class="productborder">
<p class="itemname"> Hello World </p>
<img src="images/1.jpg" class="img-responsive center-block" alt="wallet" />
</div> <!-- end of productborder -->
</html>
这是我的jquery和HTML,jquery悬停效果在前几次完美运行,比如说4/5次。然后,产品名称卡在右侧并出现并消失。我是Jquery的新手,解决这个问题的任何解决方案都将受到高度赞赏。几次后jquery效果不起作用