jquery隔行换色
两种隔行换色的方法
$('table tr:even').css("background","#F00");
$('table tr:nth-child(even)').css('background-color',"red"); nth-child: tr下的子元素
两种隔行换色的方法
$('table tr:even').css("background","#F00");
$('table tr:nth-child(even)').css('background-color',"red"); nth-child: tr下的子元素