Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
tenho uma tabela assim:
<!DOCTYPE html>
<html>
<head>
<title>JavaScript Array map Method</title>
<style>
*{
margin: 0;
padding: -1
}
table{
background: Window;
border-collapse: collapse;
}
thead{
background: olive;
color:white;
border-right: 1px solid olive;
}
thead tr th{
padding: 20px 20px;
}
tbody tr td{
border: 1px solid olive;
}
tfoot{
border-right: 1px solid olive;
background: olive;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>n
<th>pedido
<th>entrega
<tfoot>
<tr>
<th colspan="3">cancelar
<tbody>
<tr>
<td>1
<td>sabonete
<td>rua tal tal tal
<tr>
<td>2
<td>perfume
<td>rua taltaltal
</table>
</body>
</html>tr + td{
background: olive;
}thead tr th:nth-child(1){
background: olive;
}Eu indicaria utilizar uma classe ".olive {background-color: olive}" ou caso não seja possível, utilizar "thead tr th:first-child {background-color: olive}".
Crie um ID para essa coluna e chame ele no CSS