开发者

jQuery: Set Horizontal Scrollbar in the Middle to Enable Scrolling to the Left

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/

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!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜