Ciao a tutti.
con il seguente html genero una tabella.
che una volta popolata si compone di centinaia di righe.codice HTML:<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento senza titolo</title><link rel='stylesheet' src='stampa.css' media='print'></head> <body> <table width="700" border="1"> <thead> <tr> <th scope="col">LINEA</th> <th scope="col">NUMERO</th> <th scope="col">MITTENTE</th> </tr> </thead> <tbody> <?php do { ?> <tr> <td> <?php echo $row_Recordset1['linea']; ?> </td> <td><?php echo $row_Recordset1['numero']; ?></td> <td><?php echo $row_Recordset1['rif_mittente']; ?></td> </tr> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </tbody> <tfoot> <tr> <td colspan="3">PIE DI PAGINA</td> </tr> </tfoot> </table> </body> </html> <?phpmysql_free_result($Recordset1);?>
come avrete capito devo fare in modo che in stampa compaia sia l'header della tabella che il footer in ogni pagina.
il css associato è il seguente:
orbene se apro la pagina con ie, l'ultima versione, ottengo quel che voglio sia con che senza il css, con chrome invece non c'è verso.codice HTML:@charset "utf-8";/* CSS Document */ @page { size: A4; margin: 50px;} thead{display:table-header-group;}tbody{display:table-row-group;}tfoot{display:table-footer-group;}
potete aiutarmi? possibile che chrome non sia in grado di ripetere header e footer?
c'è qualche trucco che posso usare?
Grazie per le risposte.

Rispondi quotando
