jquery 隔行变色 //偶数行 $('.q-t-list-01 a:odd').css( 'background-color', '#f2f2f2') //奇数行 $('.q-t-list-01 a:even').css( 'background-color', '#eee') 效果图