scroll to some div" />
开发者

jQuery: Scroll to

Can somebod开发者_运维百科y help me, I want to use in jQuery something like "ScrollTo".

When I click something , --- > scroll to some div

Like in HTML with anchors

Thanks !!!


If you're looking for a quick way to do it, this should work:

  $('html').animate({scrollTop: $('#myelement').offset().top});

See jQuery animate for more options.


Try the ScrollTo jquery plug-in.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜