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

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -