我正在制作一个我不希望人们能够使用鼠标或箭头按钮滚动的网站,但我希望它能够通过锚链接滚动。
On the link provided by @Hugo Sousa you can still scrolling dragging the scroll bar.
You can try using fullPage.js for it using the method $.fn.fullpage.setAllowScrolling(false)
.
Basically, users won't be able to scroll in the normal way if there's no scroll bar. So this sounds like a good solution for your problem.
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.