Stampa
Categoria: css
Visite: 7562
Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
 

The alternate table row color allows a better read. You can obtain it using difrente ways. for example using css or javascript.

 

 

jQuery

$(document).ready(function()
{
  $("tr:even").css("background-color", "#000000");
});

 

CSS

table tr:nth-child(odd) td{
   background-color:#f0f0f0;
}
table tr:nth-child(even) td{
   background-color:#e0e0e0;
}

 

DISQUS - Leave your comments here