有一个我想定制的 html-print。我需要在页面底部的某个位置打印文本以适合模板(打印纸)。我怎样才能将最后一张桌子放置在距底部 2 英寸的位置?(CartTable“属于”应用程序)。现在最后一个表出现在 CartTable 下。
请帮我!
<style>
body
{
background-color:White;
font-family: Helvetica,Arial,sans-serif;
}
.CartTable {
position:absolute;
vertical-align:top;
padding-top:5pt;
width:492pt;
border: 1px solid black;
font-size: 8pt;
font-family: Helvetica,Arial,sans-serif; } .CartTable2 {
position:absolute;
vertical-align:top;
padding-top:5pt;
width:492pt;
font-size: 8pt;
font-family: Helvetica,Arial,sans-serif; } .CartTdAmmount {
vertical-align:top;
text-align:right; } .BorderTopTable {
width:492pt;
border-top: 3px solid black;
font-size: 8pt;
font-family: Helvetica,Arial,sans-serif; } .BorderTable {
position:absolute;
vertical-align:top;
padding-top:5pt;
width:498pt;
border: 1px solid black;
font-size: 8pt;
font-family: Helvetica,Arial,sans-serif; } .HeaderTr {
position:absolute;
vertical-align:top;
padding-top:5pt;
border-bottom: solid 1px black;
background-color: #CCCCCC;
font-weight:bold;
font-size: 9pt;
font-family: Helvetica,Arial,sans-serif;
height:12pt; } </style> <table class=##CartTable##> <thead>##CartHeader## </thead> <tbody>##CartIncTax## </tbody> <tfoot>
<tr>
<td colspan=7>
<table style="WIDTH: 492pt; FONT-SIZE: 8pt; BORDER-TOP: black 1px solid">
<tbody>
<tr style="HEIGHT: 18pt">
<td></td>
</tr>
</tbody>
</table>
</td> </tr> </tfoot> </table>
<table> <tr>
<td > </td>
<td>Bankaccount info:</td> </tr> <tr>
<td> </td>
<td >##Bankaccount##</td> </tr>
</table>