CÓDIGO HTML :
<table class="table table-hover">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
<tr>
<td>Mary</td>
<td>Moe</td>
<td>mary@example.com</td>
</tr>
<tr>
<td>July</td>
<td>Dooley</td>
<td>july@example.com</td>
</tr>
</tbody>
CÓDIGO CSS
.table-hover thead tr:hover th, .table-hover tbody tr:hover td {
background-color: #D1D119;
}
O código css indica que:
passe o mouse sobre a linha:
.table-hover> thead> tr: hover
a cor de fundo desta mudará para # D1D119
º
A mesma ação acontecerá para todos
.table-hover tbody tr: hover td
tdnecessário? (desculpe, eu sou inútil em css, tentando aprender)