michelsilvasz 0 Denunciar post Postado Dezembro 14, 2016 Bom dia pessoal, estou com um problema com o numero da pagina dentro do cabeçalho, o código a seguir funciona no Mozila do jeito que eu quero mas preciso que funcione no Explorer, e no Explorer ele não faz a contagem certa e repete o numero 1 para outras paginas. Coloquei em negrito as partes do código que utilizo para colocar o numero da pagina no cabeçalho. Desde já obrigado ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><script src="/PSER/Template/JS/trim.js"></script><html><head><style>thead { display: table-header-group; counter-reset: page_number;}tfoot { display: table-footer-group;}.style1 {font-family: "Century Gothic"}#page-number:after { counter-increment: page_number; content: counter(page_number);}</style><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD><body><table border=0 width="100%" cellpadding=0 cellspacing=0 align="left" ><!--cabeçalho --><thead> <tr> <th width="100%" class="style1"> <table border="0" cellSpacing="0" cellPadding="0" width="100%" bgColor=#ffffff style="border-bottom: 1px solid #000000;" > <tr> <td width="18%" style="border-left: 1px solid #000000;border-top: 1px solid #000000;" valign="top"><img src="../img/correiosPB.png" height="77" align="middle"></td> <td width="56%"><table width="100%" height="78" border="0" cellpadding="0" cellspacing="0" style="border-top: 1px solid #000000;border-left: 1px solid #000000;border-right: 1px solid #000000;"> <tr> <td height="38" style="border-bottom: 1px solid #000000;"><center> <font size="2"><strong>Orgao Emissor</strong></font><font size="2"></font> </center></td> </tr> <tr> <td><table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td height="25" align="left"><font size=2><strong> EMI:Emissao</strong></font><font size=2> </font></td> <td align="right"><font size=2><strong> VIG:Vigencia </strong></font><font size=2> </font> </td> </tr> </table></td> </tr> </table></td> <td width="26%" valign="top" align="left" style="border-top: 1px solid #000000;border-right:1px solid #000000"> <font size=2> <strong>PRT/Emissor </strong> </font><font size=2> </font><br> <span style="padding-left:250px"><font size="2"> <b id='page-number:after'></b> </font> </td> </tr> </table> <table bgColor=#ffffff cellSpacing="0" cellPadding="0" style="border-right: 1px solid #000000;border-left: 1px solid #000000;width:100%;"> <tr> <td style="border-right: 1px solid #000000;" rowspan="100%" width="29" > </td> <td rowspan="100%" width="19"> </td> <td > </td> <td rowspan="100%" width="18"> </td> </tr> </table></th> </tr> </thead> <!-- Rodape--> <tfoot> <tr> <td colspan="4" class="style1 style1"><table bgColor=#ffffff cellSpacing="0" cellPadding="0" style="border-right: 1px solid #000000;border-left: 1px solid #000000;border-bottom:1px solid #000000;width:100%;"> <tr> <td style="border-right: 1px solid #000000;" width="29" > </td> <td width="19"> </td> <td > </td> <td width="18"> </td> </tr> </table></td> </tr> </tfoot> <!-- Conteudo pagina --> <tbody style="height:850px"> <tr> <td class="style1 style1" style="height:850px"><table cellSpacing="0" cellPadding="0" style="border-right: 1px solid #000000;border-left: 1px solid #000000;background-color:#FFFFFF;width:100%;height:850px;"> <tr valign="top" > <td style="border-right: 1px solid #000000;" rowspan="100%" height="850px" width="29" > </td> <td rowspan="100%" height="850px" width="19"> </td> <td height="100px"><table style="width:100%;" height="100px"> <tr> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> as <br> </td> </tr> </table></td> </table></td> </tr> </tbody> Compartilhar este post Link para o post Compartilhar em outros sites