Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何阻止用户使用鼠标滚轮滚动 HTML 页面?
通常我们使用鼠标滚轮滚动页面。即使用户触发鼠标滚轮,我也会保持页面静止。我该怎么办?
window.onmousewheel=function(){return false}
http://jsfiddle.net/vBCbP/