Html Kodu:
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
Css Kodu:
<style>
tr:first-child{
background-color: brown;
}
tr:last-child{
background-color: rebeccapurple;
}
tr:nth-child(2){
background-color: red;
}
tr:nth-last-child(2){
background-color: antiquewhite;
}
tr:nth-child(odd){
background-color: aqua;
}
tr:nth-child(even){
background-color: green;
}
tr:nth-child(n+4){
background-color: pink;
}
tr:nth-child(3n-1){
background-color: fuchsia;
}
tr:nth-child(3n+1){
background-color: orange;
}
tr:nth-child(4n){
background-color: black;
}
</style>
Kaynak: https://shiftdelete.net/vivo-nex-3-5g-ozellikleri-ve-fiyati