jQuery:在中间设置水平滚动条以启用向左滚动 [英] jQuery: Set Horizontal Scrollbar in the Middle to Enable Scrolling to the Left

查看:203
本文介绍了jQuery:在中间设置水平滚动条以启用向左滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理的网站的主要内容块很大,无法完全容纳在较小分辨率的屏幕中.

The website I'm working on has a wide main content block that doesn't fully fit inside the smaller resolution screen.

http://www.cybart.com/bscg/

我想使用jQuery强制水平滚动条显示为滚动到中间,以便具有较小分辨率屏幕的用户可以向左滚动并访问否则将被隐藏的菜单.

I want to use jQuery to force the horizontal scrollbar to appear scrolled to the middle, so that a user who has a smaller resolution screen can scroll to the left and access the menu that would otherwise be hidden.

我将感谢您的专业建议!

I would be grateful for the expertly advice!

推荐答案

如果使用 scrollTo 插件,您可以说:$(...).scrollTo( '50%', {axis: 'x'} );

If you use scrollTo plugin, you can say: $(...).scrollTo( '50%', {axis: 'x'} );

这篇关于jQuery:在中间设置水平滚动条以启用向左滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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