javascript - Different CSS style on odd and even rows -


is possible, using css, set different styles on odd , rows dynamically generated table without myself setting correct style on each row when iterate collection?

i'm not sure work cross-browser, i'd prefer jquery myself, css-only should trick:

tr:nth-child(even) { ... } tr:nth-child(odd) { ... } 

Comments

Popular posts from this blog

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -