0
Iam只是試圖創建一個隱藏描述的產品目錄。它需要顯示用戶何時懸停在上面。如何獲得這項工作?jquery mouseover和mouseout
<script>
$("div.template_showcase").hover(function(){
$("div.app_details").css('margin-top','-154px';);
},function(){
$("div.app_details").css('margin-top','-8px';);
});
</script>
<div class="template_showcase">
<a href="#"><img src="<?php echo get_stylesheet_directory_uri() ?>/images/templates/review.png" />
<div class="app_details">
<span class="paratitle">Review</span>
<span class="para">
Turn your jumbo in to a review site
</span>
<span class="addbutton">Add to Jumbo</span>
</div>
</a>
</div>