jquery for single and double-line display different background color

Original link: http://www.cnblogs.com/TSPWater/archive/2010/08/25/1808271.html

// display different background colors according to odd and even lines

 $('#table tr:even').css('backgroundColor','#E8E6E1');

 Paper odd: a single line, even: double row

Reproduced in: https: //www.cnblogs.com/TSPWater/archive/2010/08/25/1808271.html

Guess you like

Origin blog.csdn.net/weixin_30470643/article/details/95302672