我有一个简单演示的查询,我想在button1
点击时停止滚动,button2
然后滚动将恢复。我不知道我是怎么做到的?
小提琴here
HTML:
<input type='button' value='stop scroll' id='btn1'>
<input type='button' value='resume scroll' id='btn2'>
<div> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, ... <div>