Zitat:
Original geschrieben von Pavlovs_Dog
<thead>
Bin ein Table-Kopf
</thead>
....
....
<tfoot>
Bin ein Table-Fuss
</tfoot>
Nun solle man annehmen, daß der Eintrag Table-Foot am Ende einer Tabelle kommt.
Nun, beim Opera ist das auch so.
Beim Konqueror kommt gar nix und beim Mozilla kommt der Eintrag gleich neben dem Table-Header!
|
Beim Mozilla kommt der Footer auch am Ende der Tabelle, WENN Du Dich an die Spezifikation hältst, die da lautet:
Zitat:
Table rows may be grouped into a table head, table foot, and one or more table body sections, using the THEAD, TFOOT and TBODY elements, respectively. This division enables user agents to support scrolling of table bodies independently of the table head and foot. When long tables are printed, the table head and foot information may be repeated on each page that contains table data.
...
TFOOT must appear before TBODY within a TABLE definition so that user agents can render the foot before receiving all of the (potentially numerous) rows of data.
|
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3
ad col und colgroup:
Hier dürfte der Mozilla generell Probleme haben, da mein Beispiel:
Code:
<style>
#rechts { background:white; text-align=right; }
#links { background:red; text-align=left; }
</style>
<table border="1" >
<COLGROUP width="*">
<col id="rechts">
<col id="links">
<thead style="background:green">
<tr>
<td>
Tabellenkopf 1
</td>
<td>
Tabellenkopf 2
</td>
</tr>
</thead>
<tfoot>
<tr>
<td>
Tabellenfuss 1
</td>
<td>
Tabellenfuss 2
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
Datenzelle 1
</td>
<td>
Datenzelle 2
</td>
</tr>
<tr>
<td id="rechts">
Datenzelle 1
</td>
<td>
Datenzelle 2
</td>
</tr>
</tbody>
</table>
im IE (tschuldigung) ordentlich gerendert wird, der Mozilla aber alle style-Attribute ignoriert
