jquery 隔行变色

 //偶数行
$('.q-t-list-01 a:odd').css( 'background-color', '#f2f2f2')

 //奇数行

$('.q-t-list-01 a:even').css( 'background-color', '#eee')
 
效果图

原文地址:https://www.cnblogs.com/chenshaoxiong/p/13279933.html