Zhuangpeiyue (Talk | contribs) |
Zhuangpeiyue (Talk | contribs) |
||
Line 28: | Line 28: | ||
break; | break; | ||
} | } | ||
− | if(bottom<150 | + | if(bottom<150) |
− | + | if($('.container_in .container_nav').hasClass('fixed_2')) | |
− | if(bottom>=150 | + | $('.container_in .container_nav').addClass('fixed_2'); |
− | + | if(bottom>=150) | |
+ | if($('.container_in .container_nav').hasClass('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&&!$('.container_in .container_nav').hasClass('fixed')) | if(top>120&&!$('.container_in .container_nav').hasClass('fixed')) |
Revision as of 09:26, 28 September 2017