lst619247
        // 禁止滑动
        stopLoop(){
            var top=$(window).scrollTop();//这是当前滚动的页面滚动条位置
            $("body").css({
                "position":"fixed",
                "width":"100%",
                "top":top*-1 //此处为当前需要定住的位置
            });
        },
        // 允许滑动
        startLoop(){
            $("body").css({
                "position":"static"
            });
        },

 

分类:

技术点:

相关文章:

  • 2022-01-21
  • 2021-11-26
  • 2021-12-05
  • 2022-01-16
  • 2022-01-27
  • 2021-11-27
  • 2020-06-01
  • 2022-02-09
猜你喜欢
  • 2022-01-20
  • 2021-12-04
  • 2021-11-28
  • 2021-12-06
  • 2022-02-08
  • 2021-12-07
  • 2021-05-25
相关资源
相似解决方案