摘要:
//导航选中背景变色$('.x_menu ul li a').click(function(){$(this).addClass('x_on').parent().siblings().find('a').removeClass('x_on');}); 阅读全文
摘要:
//固顶 $(window).scroll(function() { var top = $(window).scrollTop(); if(top>=1200){ $(".x_menu").addClass("x_fixed"); }else{ $(".x_menu").removeClass(" 阅读全文