<div id="box" >
<table>
<tr id="tr-one"></tr>
<tr id="tr-two"></tr>
<tr id="tr-three"></tr>
<tr id="tr-four"></tr>
</table>
</div>
<table>
<tr id="tr-one"></tr>
<tr id="tr-two"></tr>
<tr id="tr-three"></tr>
<tr id="tr-four"></tr>
</table>
</div>
$("#box").animate({ scrollTop: $("#box").scrollTop() + $('#tr-three').offset().top - $("#box").offset().top }, 1000);
参考https://www.cnblogs.com/liushenghuan/p/5740498.html