如何水平滚动网页? [英] How to Horizontally scroll a webpage?

查看:107
本文介绍了如何水平滚动网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个网页,当用户向下滚动鼠标滚轮时,向左移动。一般来说,所有网站都是垂直滚动。

 < ; body> 
< div style =width:10000px; height:400px; top:0; left:0;>
//这里是内容。
< / div>
< / body>

我的目标是使用jQuery或任何其他Javascript工具在鼠标滚动条上滚动DIV 。

解决方案

使用Javascript的水平页面滚动


I want to develop a webpage that moves towards the left direction whenever the user scrolls down the mousewheel. Generally all websites are vertical scrolling. But this one should scroll horizontally.

Example code:

<body>
<div style="width:10000px; height:400px; top:0; left:0;">
//here goes the content.
</div>
</body>

My objective is to scroll the DIV horizontally on mouse-wheel scroll, using jQuery or any other Javascript tool.

解决方案

Horizontal page scrolling using Javascript

这篇关于如何水平滚动网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆