我希望能够在悬停时滑动切换 div,但它不起作用.. 这是代码:
<div class='slide-header'>
header....
</div>
<div class='slide-content'>
Content..................
</div>
<script>
$(".slide-header").hover(function () {
$(".slide-content").slideToggle("slow");
});
</script>
<style><!-- initially, I don't want to display .slide-content -->
.slide-content { display:none; }
</style>
如何在悬停时使用 .slideToggle?谢谢!