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

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

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