//滚动条滚动时右侧内容始终固定在屏幕右侧滚动的位置
    $(window).scroll(function() {
        var top = $(window).scrollTop();
        if(top>=690){
            // alert(11);
            $(".w_right").addClass("w_fixed");

        }else{
            $(".w_right").removeClass("w_fixed");
        }
    });
.w_fixed{
    position: fixed;
    top:-50px;
    right: 350px;
}


相关文章:

  • 2021-04-06
  • 2021-11-18
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
相关资源
相似解决方案