Zebra striping a table with hidden rows using CSS3?

后端 未结 9 2309
滥情空心
滥情空心 2020-12-01 20:49

I\'ve got a table

 
&
9条回答
  •  情歌与酒
    2020-12-01 21:09

    in jquery ..

    var odd = true; 
    $('table tr:visible').each(function() {   
      $(this).removeClass('odd even').addClass(odd?'odd':'even'); 
      odd=!odd 
    });
    

提交回复
热议问题