锚点定位,jquery定位到页面指定位置

jquery锚点定位

$('body,html').animate({scrollTop: $('#ter1').offset().top}, 500);
#ter1是你要定位的id对象,
500是0.5秒执行完成

猜你喜欢

转载自blog.csdn.net/zenghu_10/article/details/76146517