
本文介绍使用简单的jQuery代码制作侧边栏导航下拉效果。
主要js与解析
<script src="js/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(".tabs_title").hover(function () { $(this).nextAll().slideDown().end().parent().siblings().children(".tabs_con").slideUp(); }); </script>