Una delle risposte a my previous question indica che colgroup/col dovrebbe funzionare solo in IE.Perché colgroup/col non funziona in Chrome
Ho scritto un esempio (vedi sotto) che funziona su IE9 (centra il contenuto delle celle nella terza colonna), ma non funziona sull'ultima versione di Chrome.
Cosa ho fatto di sbagliato?
Esempio di HTML:
<html>
<head><title>test table centerring</title></head>
<body>
<table border="1">
<colgroup>
<col/>
<col/>
<col align="center">
</colgroup>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Name 1</td>
<td>Value 1</td>
</tr>
<tr>
<td>2</td>
<td>Name 2, Name 2, Name 2, Name 2</td>
<td>Value 2</td>
</tr>
<tr>
<td>3</td>
<td>Name 3</td>
<td>Value 3</td>
</tr>
<tr>
<td>4</td>
<td>Name 4</td>
<td>Value 4, Value 4, Value 4, Value 4</td>
</tr>
</tbody>
</table>
</body></html>
Hanno dichiarato che funziona solo in IE, il che significa che non funzionerà in Chrome. – ricochet1k