0
我正在使用TCPDF將一些HTML轉換爲PDF。 我不能把填充到我的表中,我有一些邊框和文本崩潰的邊界,我讀過TCPDF不允許一些CSS。填充不起作用TCPDF
我也不能更改表的高度,所以我用cellpadding="-1"
有我的PDF工作。
中間我有cellpadding="0";
所以...我如何設置高度爲<tr>
或者有人有一些魔術技巧與TCPDF用於填充或保證金?
`
<table border="0" align="center" cellpadding="-2" cellspacing="0">
<tr>
<td width="50%" class="marcoNegro" ><p align="center" style="font-size:8px;">
<font size="7"><strong>Contratante</strong></font><br>
Inversiones Accionarias Landus S. A. de C. V.</p></td>
<td width="1%"> </td>
<td width="23%" class="marcoNegro"><p align="center" style="font-size:8px;"><font size="7"><strong>Núm. de certificado</strong></font><br>
<?php echo $rowLg->id_tabla;?></p></td>
<td width="1%"> </td>
<td width="23%" class="marcoNegro"><p align="center" style="font-size:8px;"><font size="7"><strong>Número de póliza</strong></font><br>
935492</p></td>
</tr>
</table>`
嘗試添加充當填充的白色邊框。他們在電子郵件中工作得很好,我猜這也可以在這裏完成。你可以做到這一點,而不是你的tr和td的 – dward 2014-09-03 18:21:40
你可以發佈你正在使用的html,同樣適用於你的css – Allan 2014-09-03 18:23:42