边界不可见...请帮帮我,我尝试了很多方法,但尚未解决。这是我的代码。这是树枝上的桌子
<div style="margin-top: 30px; margin-bottom: 250px">
<table width="100%" style="border-left: 1px solid black; border-right:1px solid black; border-collapse: collapse; height: auto;">
<thead>
<tr>
<th width="40%" align="center" style="border: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font face="arial" style="font-size: 14px">
{{ "@pdf.designation"|trans|upper }}
</font> </th>
<th width="20%" align="center" style="border: 1px solid black; ">
<font face="arial" align="center" style="font-size: 14px">
{{ "@pdf.quantity"|trans|upper }}
</font> </th>
<th width="20%" align="center" style="border: 1px solid black;">
<font face="arial" style="font-size: 14px">
{{ "@pdf.ht.price"|trans|upper }}
</font> </th>
<th width="20%" align="center" style="border: 1px solid black;">
<font face="arial" style="font-size: 14px">
{{ "@pdf.ttc.price"|trans|upper }}
</font> </th>
</tr>
</thead>
<tbody>
{% for mission_one in mission %} {% set total_ht = total_ht + mission_one.totalht %} {% set total_ttc = total_ttc + mission_one.totalttc %}
<tr>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{mission_one.name|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.quantity|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalht|e }} €
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalttc|e }} €
</font> </td>
</tr>
<tr>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{mission_one.name|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.quantity|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalht|e }} €
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalttc|e }} €
</font> </td>
</tr>
<tr>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{mission_one.name|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.quantity|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalht|e }} €
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalttc|e }} €
</font> </td>
</tr>
<tr>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{mission_one.name|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.quantity|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalht|e }} €
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalttc|e }} €
</font> </td>
</tr>
<tr>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{mission_one.name|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.quantity|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalht|e }} €
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalttc|e }} €
</font> </td>
</tr>
<tr>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{mission_one.name|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.quantity|e }}
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalht|e }} €
</font> </td>
<td align="center" style="border-right: 1px solid black; border-left: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission_one.totalttc|e }} €
</font> </td>
</tr>
{% endfor %} </tbody>
<tfoot>
<tr>
<td align="center" style="border: 1px solid black;padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ "@billing.co2-emission"|trans }} :
</font> <font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ mission[0].co2|e }} kg
</font> </td>
<td align="center" style="border-top: 1px solid black;"></td>
<td align="center" style="border: 1px solid black; ">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ "@cart.total-ht"|trans|upper }}
</font> </td>
<td align="center" style="border: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ total_ht|e }} €
</font> </td>
</tr>
<tr>
<td colspan="2" align="center" style="border: 0; border-left: 1px solid transparent;"></td>
<td align="center" style="border: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ "@pdf.tva.price"|trans|upper }}
</font> </td>
<td align="center" style="border: 1px solid black;">
<font align="justify" face="arial" style="font-size:12px; line-height:12px;">
{{ total_ht|e * (0.2)}} €
</font> </td>
</tr>
<tr>
<td colspan="2" align="center" style="border: 0; border-left: 1px solid transparent;">
</td>
<td align="center" style="border: 1px solid black; padding-top: 8px; padding-bottom: 8px">
<font align="justify" face="arial" style="font-size:12px; line-height:12px; font-weight: bold;">
{{ "@cart.total-ttc"|trans|upper }}
</font> </td>
<td align="center" style="border: 1px solid black; ">
<font align="justify" face="arial" style="font-size:12px; line-height:12px; font-weight: bold;">
{{ total_ttc|e }} €
</font> </td>
</tr>
</tfoot>
<table width="40%" style="border: 1px dotted #d6d6d6; border-collapse: collapse;">
<tr>
<th height="80" align="center" style="border: 1px dotted #d6d6d6; border-collapse: collapse;">
<table align="center">
<tr>
<td align="left" style="padding-left: 10px; font-size:13px; font-weight: normal; padding-right: 10px;">{{ "@pdf.footer.client.code"|trans }} :</td>
<td>
<font align="justify" face="arial" style="font-size:12px; line-height:18px;">
{{ mission[0].client_id|e }}
</font> </td>
</tr>
<tr>
<td align="left" style="padding-left: 10px; font-size:13px; font-weight: normal; padding-right: 10px;">{{ "@billing"|trans }} :</td>
<td>
<font align="justify" face="arial" style="font-size:12px; line-height:18px;">
{{ mission[0].invoice_number|e }}
</font> </td>
</tr>
<tr>
<td align="left" style="padding-left: 10px; font-size:13px; font-weight: normal; padding-right: 10px;">{{ "@pdf.footer.ttc.amount"|trans }} :</td>
<td>
<font align="justify" face="arial" style="font-size:12px; line-height:18px;">
{{ total_ttc|e }} €
</font> </td>
</tr>
<tr>
<td align="left" style="padding-left: 10px; font-size:12px; font-weight: normal; padding-right: 10px;">
{{ "@pdf.ref.number"|trans }} : </td>
<td>
<font align="left" face="arial" style=" font-size:12px; line-height:18px;">
{{ mission[0].po_number|e }}
</font> </td>
</tr>
</table>
</th>
</tr>
</table>
</table>
</div>
如果能在每次页面中断时帮助我放置一个边框,我会很感激,如果每次都能在页面中断时帮助我放置一个边框,我会非常感激,如果您每次都帮助我将边框放置在一个页面上,我将不胜感激。分页符,如果您每次页面中断时都帮助我放置边框,我将不胜感激,如果您每次页面中断时都帮助我放置边框,我将不胜感激,如果您每次都帮助我放置边框,我将不胜感激页面中断,
这是我生成PDF时发生的事情