页面滚动scroll

$(window).scroll(function(){
      var scrollH = $(document).scrollTop();
      if(scrollH>78){
        $('#id').addClass('fix').slideDown(0);
      }else{
        $('#id').removeClass('fix')
      }
  }) 

 

posted @ 2017-06-08 11:56  对方屌丝正在输入中  阅读(92)  评论(0编辑  收藏  举报