What is the best way to style alternating rows in a table?

后端 未结 12 528
南方客
南方客 2020-12-11 11:09

Obviously, the actual style of the odd/even rows will be done via a CSS class, but what is the best way to \"attach\" the class to the rows? Is is better to put it in the ma

12条回答
  •  -上瘾入骨i
    2020-12-11 11:41

    I always apply the class on the server side as they are streamed out/added to the page, but if you have a client-side re-sorting the rows will need to be re-classed.

提交回复
热议问题