13
Sagen Sie zum Beispiel habe ich:Auswählen ersten td in der ersten Tabelle mit CSS 3
<div id="container">
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
Und
td { width:10px; height:10px; }
Was ich will ist ein Stil auf die erste td tun gilt, von der erste Tabelle.
ich erwartet hätte:
#container table:first-child td:first-child {
background: red;
}
Allerdings funktioniert es nicht? Bitte beraten!