隐藏掉滚动条,还能响应鼠标滚动事件?就像这种效果http://demo.mycodes.net/moban...
1 回答

POPMUISE
TA贡献1765条经验 获得超5个赞
滚轮事件是onmousewheel
滚动事件是onscroll
顺序:
鼠标滚动-> onmousewheel -> 页面滚动 -> onscroll
所以滚动条直接隐藏掉不会影响滚轮事件,你要实现的效果是在onmousewheel事件里用js实现,相关数据查看event。
添加回答
举报
0/150
提交
取消