简体   繁体   中英

smooth scroll by x pixels using arrow keys up and down

I am trying to make the whole html page smooth scrolling by hitting arrow keys up and down by exact amount of pixels. (EXAMPLE: I hit arrow down and the page scrolls down by 300px then I hit that arrow again and it scrolls again by 300px, then I hit up arrow key and it scrolls up by 300px...) I founded these posts: similiar post similiar post 2 but I dont know how to make the arrow keys working with it. Can you please help me?

我不知道它是否对您有帮助。但是建议通过这个(jscrollpane.kelvinluck.com) 网站进行滚动浏览,我已经通过此方法修改了网页,使其具有简单的滚动屏。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM