jQuery: snapped scrolling - possible?

后端 未结 2 1442
暗喜
暗喜 2021-01-19 03:39

I\'m having a scrollable table with fixed header. Would it be possible to have \"snapped scrolling\" on the scrollbar - which means that the table rows won\'t scroll pixel b

2条回答
  •  野的像风
    2021-01-19 04:36

    the answer is 'yes' .. you can adjust .scrollTop and make it be anything you want in response to an onscroll event

    read about scrollTop here

    read about the scroll event here

提交回复
热议问题