Guest User

Untitled

a guest
Jul 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <div id="container">
  2. <div></div>
  3. <div></div>
  4. <div></div>
  5. <div></div>
  6. ...
  7. </div>
  8.  
  9. #tbl_users tr:nth-child(even) {background: #CCC;}
  10. #tbl_users tr:nth-child(odd) {background: #FFF;}
  11.  
  12. div#container div:nth-child(even) {background: #CCC;}
  13. div#container div:nth-child(odd) {background: #FFF;}
  14.  
  15. #container div:nth-child(even) {background: #CCC;}
  16. #container div:nth-child(odd) {background: #FFF;}
  17.  
  18. $('#container>div:odd').css("background-color", "#ff0000");
  19. $('#container>div:even').css("background-color", "#00ff00");
  20.  
  21. #container div:nth-child(even) {background: #CCC;}
  22. #container div:nth-child(odd) {background: #FFF;}
Add Comment
Please, Sign In to add comment