Change color of every other row

I’m trying to set a table to have rows alternate colors, for contrast and visibility.
I know I can set a row to a certain color based on a value in the table but I just need to set the color for every other row.
Is there a way to do this easily? Or should I create a hidden field with alternating values and set the color thresholds to those values?

Play with CSS (selectors), but it must be allowed explicitly in your Grafana config: