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
Post a Comment