使用CSS将鼠标滚轮设置为水平滚动 [英] Set mouse wheel to horizontal scroll using css
本文介绍了使用CSS将鼠标滚轮设置为水平滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想设计一个水平页面。当我使用鼠标滚轮时,它只是垂直滚动内容。如何通过鼠标滚轮使用水平滚动? CSS是否支持此属性?
I want to design a horizontal page. When I use mouse wheel it just scrolls content vertically. How can I use horizontal scroll by mouse wheel? Does CSS support this property?
例如这样的事情:
mouse-wheel:horizontal;
我不想要jQuery解决方案。
I dont want jQuery solutions.
推荐答案
CSS不支持鼠标或键盘输入的操作;输入控件只能通过JavaScript进行操作。
CSS does not support manipulation of mouse or keyboard inputs; input controls can only be manipulated via JavaScript.
这篇关于使用CSS将鼠标滚轮设置为水平滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文