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