var boxTop = $("tbody").find("tr").eq(0).offset().top; //第一行距离顶部的距离var currentRowTop = $("tbody").find("tr").eq(10).offset().top; //指定行到顶部的距离$(".dataTables_scrollBody").scrollTop(currentRowTop - boxTop); //滚动到指定行位置