獲取滾動(dòng)的偏移位 $('body').scrollTop() + $('html').scrollTop() 設(shè)置滾動(dòng)的偏移位 $('html,body').scrollTop(300)