开发者

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

开发者 https://www.devze.com 2023-03-21 06:55 出处:网络
The website I\'m working on has a wide main content block that 开发者_高级运维doesn\'t fully fit inside the smaller resolution screen.

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

精彩评论

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