常用JS积累之获取节点高度(基于浏览器) 1 var wintop = $(this).offset().top; 2 $("html,body").animate({ scrollTop: wintop - 200 }, "slow");