Alternate table row color using CSS?

后端 未结 9 1865
囚心锁ツ
囚心锁ツ 2020-11-22 09:03

I am using a table with alternate row color with this.

9条回答
  •  时光取名叫无心
    2020-11-22 09:31

    You can use nth-child(odd/even) selectors however not all browsers (ie 6-8, ff v3.0) support these rules hence why most solutions fall back to some form of javascript/jquery solution to add the classes to the rows for these non compliant browsers to get the tiger stripe effect.

提交回复
热议问题