方便实用:var wintop = $(this).offset().top; $("html,body").animate({ scrollTop: wintop - 200 }, "slow");