方法一:
$('.table-content tbody tr').css("background","");//清空之前的背景
var temp =".table-content tbody tr:nth-child("+seqNO+")";//获取某行的对象 ,seqNO为行号
var tableheight = $('.table-content', window.parent.document).height(); //获得容器的高度
var temp2 = (Number(seqNO)/$('.table-content tbody tr').length)*tableheight;//计算该行在容器的比例
//如果不管用 $('.table-content').animate({scrollTop:temp2},100); //定位tr
$(temp).css("backgrou