CSS - background color of table row odd/even

后端 未结 9 968

I have a table that is dynamically generated by PHP. I am hoping that I can use CSS to apply a background color based on where the table row is odd/even, i.e. the backgroun

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 08:38

    For have a small php inside your html you can use

    
    

    use alternate between even and odd.

提交回复
热议问题