=5){ // $(this).children('a').css('font-size','12px'); $(this).parent('.downMenu').css('width','200%'); } }) //处理有二级的跳转 let son = $(this).children('.downMenu').children('li').length; if(son>0){ let url = $(this).children('.downMenu').children('li').eq(0).children('a').attr('href'); $(this).children('a').eq(0).prop('href',url); } }) //内页左侧栏悬浮 //$(".leftMenu").scrollFix({endPos:".footer"}); $(window).scroll(function(){ var sw = $('.leftMenu').width(); var scrollTop = $(window).scrollTop(); if(scrollTop>255&&scrollTop<8900){ $('.leftMenu').css('position','fixed'); $('.leftMenu').css('width',sw); $('.leftMenu').css('top','1%'); }else{ $('.leftMenu').css('position',''); $('.leftMenu').css('width',sw); $('.leftMenu').css('top','auto'); } }) }) $(".win-backtop").click(function() { $("body,html").animate({ scrollTop: 0 }, 800); return false });
XML 地图