我的元素不断抖动,当我将鼠标悬停在父元素上时?任何帮助都会很棒,谢谢!
$(document).ready(function(){
$("div.row1 div.one").mouseover(function() {
$("div.row1 div.one img").animate({"bottom":"0px"}, "600");
});
$("div.row1 div.one").mouseout(function() {
$("div.row1 div.one img").animate({"bottom":"74px"}, "600");
});
});
<div class="row1">
<div class="one">
<div class="post_data">
<h1 class="post_title">The Post Title</h1>
<h2 class="post_snippet">Lorem Ipsum Dolar Sit Amet.</h2>
<p class="post_date">3/14/2012</p>
</div> <!-- post_data //-->
<img src="test_img1.jpg" alt="test"/>
</div>