//菜单下拉样式效果 $(".m1 > a").click(function(){ if($(this).next().is(":hidden")){ $(this).parent().siblings().children("ul").hide(); $(this).next().show(); }else{ $(this).next().hide(); } }); //菜单被选中效果 $(".m1 > ul > li").click(function(){ $(".m1 > ul > li").css("background-color","#ffffff"); $(this).css("background-color","#f4f4f4"); }); |
|
来自: Sheeyetree书屋 > 《JAVA》