[HTML] Problème de colspan...
Voici un code html tout simple que vous pouvez executer avec IE.
Le premier tableau n'est pas bon, le deuxième est bon.
Y a-t-il moyen de faire autrement qu'en rajoutant une ligne avec des cellules sans colspan, ce qui m'embête quand je met des cellpadding dans mes tableaux (lignes vides prenant de la hauteur!...)?
Merci.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| <html><body>
<table id="TableauPASOK" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<colgroup>
<col width="15%">
<col width="15%">
<col width="10%">
<col width="15%">
<col width="10%">
<col width="5%">
<col width="15%">
<col width="15%">
</colgroup>
<tbody>
<tr>
<td style="background-color:blue">1</td>
<td style="background-color:red">2</td>
<td style="background-color:blue">3</td>
<td style="background-color:red">4</td>
<td style="background-color:blue">5</td>
<td colspan=2 style="background-color:green">6+7</td>
<td style="background-color:red">8</td>
</tr>
</tbody>
</table>
<br>
<table id="TableauOK" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<colgroup>
<col width="15%">
<col width="15%">
<col width="10%">
<col width="15%">
<col width="10%">
<col width="5%">
<col width="15%">
<col width="15%">
</colgroup>
<tbody>
<tr height="1">
<td ></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="background-color:blue">1</td>
<td style="background-color:red">2</td>
<td style="background-color:blue">3</td>
<td style="background-color:red">4</td>
<td style="background-color:blue">5</td>
<td colspan=2 style="background-color:green">6+7</td>
<td style="background-color:red">8</td>
</tr>
</tbody>
</table>
</body></html> |