dholbert%cs.stanford.edu e1b4966724 Bug 413286: Let empty auto-width columns be expanded. r+sr=dbaron a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@246270 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-22 03:25:57 +00:00

109 lines
3.3 KiB
HTML

<html>
<head>
<style>
table { width: 400px; height: 25px; }
td.blue { background: lightblue; color: lightblue }
td.green { background: lightgreen; color: lightgreen }
col.a { width: 100px; }
col.c { width: 25%; }
</style>
</head>
<body>
With colspan:
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue"></td>
<td class="green" colspan="2"></td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue">xxx</td>
<td class="green" colspan="2"></td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue"></td>
<td class="green" colspan="2">xxx</td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue">xxx</td>
<td class="green" colspan="2">xxx</td>
</tr></tbody>
</table>
Without colspan:
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue"></td>
<td class="green"></td>
<td class="green"></td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue">xxx</td>
<td class="green"></td>
<td class="green"></td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue"></td>
<td class="green">xxx</td>
<td class="green"></td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue"></td>
<td class="green"></td>
<td class="green">xxx</td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue">xxx</td>
<td class="green">xxx</td>
<td class="green"></td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue">xxx</td>
<td class="green"></td>
<td class="green">xxx</td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue"></td>
<td class="green">xxx</td>
<td class="green">xxx</td>
</tr></tbody>
</table>
<table cellspacing=0 cellpadding=0>
<colgroup><col class="a"/><col/><col class="c"/></colgroup>
<tbody><tr>
<td class="blue">xxx</td>
<td class="green">xxx</td>
<td class="green">xxx</td>
</tr></tbody>
</table>
</body>
</html>