使用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.