Zhuangpeiyue (Talk | contribs) |
Zhuangpeiyue (Talk | contribs) |
||
Line 35: | Line 35: | ||
$('.container_in .container_nav').removeClass('fixed_2'); | $('.container_in .container_nav').removeClass('fixed_2'); | ||
if(!$('.container_in .container_nav').hasClass('fixed_2')){ | if(!$('.container_in .container_nav').hasClass('fixed_2')){ | ||
− | if(top>120 | + | if(top>120) |
− | + | if(!$('.container_in .container_nav').hasClass('fixed')) | |
− | if(top<=120 | + | $('.container_in .container_nav').addClass('fixed'); |
− | + | if(top<=120) | |
+ | if($('.container_in .container_nav').hasClass('fixed')) | ||
+ | $('.container_in .container_nav').removeClass('fixed'); | ||
} | } | ||
}); | }); |
Revision as of 09:28, 28 September 2017