我只是想创建一个隐藏描述的产品目录。它需要显示用户何时悬停在它上面。如何做到这一点?
<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>