文章评分 次,平均分 :
wordpress的菜单一般不会层级展开,分类多了看着不舒服,也不明晰,就写了这个代码
(function($){ $(".widgetwrap>ul>.cat-item>a").attr("href", "javasrcipt:void(0);").click(function(){ $(this).parent().find("ul").toggle(); }); $(".widgetwrap>ul>.cat-item>ul:gt(0)").hide(); })(jQuery);
除特别注明外,本站所有文章均为我要编程原创,转载请注明出处来自http://5ycode.com/article/181.html