.table1{
thead:nth-child(1){background-color: blue; color: white;}
tr:nth-last-child(4n+4){background-color: yellow;}
tr:nth-child(4n+3){background-color: red;}
tfoot{background-color: gray; color:white}
}
.table2{
   thead:nth-child(1){background-color: blue; color: white;} 
   tr:nth-child(2n+2){background-color: lightgray;}
   td:nth-child(1){background-color: gray; color: white;}
   tfoot{background-color: gray; color:white}
}
.table3{
    tr:nth-child(odd)
        td:nth-child(even),
    tr:nth-child(even)
        td:nth-child(odd){background-color: lightgray;}
    tr:nth-child(even)
        td:nth-child(odd),
    tr:nth-child(odd)
        td:nth-child(even){background-color: white;}
    thead:nth-child(1){background-color: blue; color: white;} 
    tfoot{background-color:  #DDF;}
}