How to set alternate row color for an iterated table in php?

前端 未结 3 1789
广开言路
广开言路 2021-01-21 23:51

I am using PHP and I am iterating a table with a result array ... I want to add row color and alternate row color to it.... How to do so? Any suggestion...



        
3条回答
  •  不思量自难忘°
    2021-01-22 00:15

    To streamline your server code you could use javascript to highlight your rows and add mouse over/out handlers to the rows to do whatever you want.

    Very easy to do with jquery and many examples.

提交回复
热议问题