未创建所需的下拉效果。请帮忙。提前致谢
jQuery
$(document).ready(function() {
$("#navigation ul").mouseenter(
function(){ $("#navigation li a").fadeIn();
});
$("#navigation ul").mouseleave(
function(){ $("#navigation li ").fadeOut();
});
});
html
<ul class="navigation">
<li><a href="index.php">First</a>
<ul class="navigation">
<li><a href="index.php">First</a></li>
<li><a href="index.php">Second</a></li>
</ul>
</li>
</ul>