Ich habe eine Tabelle mit einem thead
(Header) gemacht; auf einem Mac, und in Firefox ist alles in Ordnung, aber auf Internet Explorer 6 ist der Kopf einfach weg ...Warum erscheint mein Thead nicht im Internet Explorer?
Irgendeine Idee warum?
Hier ist der Link zu testen: http://www.acecrodeo.com/new/05-rodeos.php ... Die Tabelle in tablerize.js
aufgebaut ist:
jQuery.fn.tablerize = function() {
return this.each(function() {
var table;
$(this).find('li').each(function(i) {
var values = $(this).html().split('*');
if(i == 0) {
table = $('<table>');
var thead = $('<thead>');
$.each(values, function(y) {
thead.append($('<th>').html(values[y]));
});
table.append(thead);
} else {
var tr = $('<tr>');
$.each(values, function(y) {
tr.append($('<td>').html(values[y]));
});
table.append(tr);
}
});
$(this).after(table).remove();
});
};
... aus einer Liste auf der Seite:
<ul>
<li> Date*Endroit*Sanction</li>
<li> 29 Mars & 5 Avril*St-Évariste, Beauce # 1*Équipe Rodéo du Qc.</li>
<li> 12 & 19 Avril*St-Évariste, Beauce # 2*Équipe Rodéo du Qc.</li>
<!-- ... -->
</ul>
Ich finde überhaupt keinen Thead im Code ... – Guffa
Die Tabelle wird von JS aus einer Liste erstellt. – Shog9