How can I scroll programmatically a div with its own scrollbars?

后端 未结 5 1603
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 17:12

I have a HTML page with an internal DIV used for content. The internal DIV has its own scrollbars. I would like to automatically scroll to a certain position in the DIV.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 17:51

    there is this .scrollTo() method which can help you scroll through your divs. try it for more info visit here

提交回复
热议问题