Avoir Google Chrome répéter les en-têtes de tableau sur les pages imprimées

J'aimerais avoir ma table les en-têtes d'répété pour chaque page imprimée, mais il semble que Google Chrome ne prend pas en charge la <thead> balise bien...est-il un moyen de contourner cela? Je suis en utilisant Google Chrome v13.0.782.215.

Le code de la table est très simple...rien de compliqué:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css" media="all">
@page {
size: landscape;
margin-top: 0;
margin-bottom: 1cm;
margin-left: 0;
margin-right: 0;
}
table {
border: .02em solid #666; border-collapse:collapse; 
width:100%; 
}
td, th {
border: .02em solid #666; font-size:12px; line-height: 12px; 
vertical-align:middle; padding:5px; font-family:"Arial";
}
th { text-align:left; font-size:12px; font-weight:bold; }
h2 { margin-bottom: 0; }
</style>
</head>
<body>
<h2>Page Title</h2>
<table>
<thead>
<tr class="row1">
<th><strong>Heading 1</strong></th>
<th><strong>Heading 2</strong></th>
<th><strong>Heading 3</strong></th>
<th><strong>Heading 4</strong></th>
<th><strong>Heading 5</strong></th>
</tr>
</thead>
<tbody>
<tr class="row2">
<td width="30">...</td>
<td width="30">...</td>
<td width="90">....</td>
<td width="190">...</td>
<td width="420">...</td>
</tr>
<tr class="row1">
<td width="30">...</td>
<td width="30">...</td>
<td width="90">....</td>
<td width="190">...</td>
<td width="420">...</td>
</tr>
....
</tbody>
</table>
</body>
</html>

Aucune information sur ce sujet est la bienvenue.

  • Vous pouvez vérifier le Chrome bug tracker pour voir si c'est un bug
  • Jiang: je l'ai fait et il semble que c'est un problème de longue date qui n'a jamais été abordé...c'est vraiment frustrant
  • Si vous vous souciez de ce bug se fixe dans google Chrome, veuillez utiliser le lien ci-dessous pour consulter le Rapport de Bug et "Star" en cliquant sur l'étoile en haut à gauche.
InformationsquelleAutor Stephen M | 2011-08-26