我在print.php
中使用TCPDF
,Multicell
tables
,其中显示了date
和cardriver
每个$pdf->MultiCell(55, 40, ''.$dates, 0, 'J', 0, 0, '', '', true, 0, false, true, 0, true);
$pdf->MultiCell(55, 40, ''.$cardriver, 0, 'J', 0, 0, '', '', true, 0, false, true, 0, true);
:
tables
现在next
彼此显示$cardriver
,但beneath
中的文字开始一行+-----------------------------------+----------+--+
| Dates | Drivers | |
+-----------------------------------+----------+--+
| 24. May 2016 08:30 - 17:00 | | |
| 7. June 2016 08:30 - 17:00 | Driver 1 | |
| 22. December 2021 09:00 - 10:00 | Driver 2 | |
| This row is testing html entities | Driver 3 | |
+-----------------------------------+----------+--+
:
one
有什么问题吗?
或者是否可以使用table
,variables
这样的数据alligned
+---------------------------------+---+
| Dates | |
+---------------------------------+---+
| 24. May 2016 08:30 - 17:00 | |
| Driver 1 | |
| 7. June 2016 08:30 - 17:00 | |
| Driver 2 | |
| 22. December 2021 09:00 - 10:00 | |
| Driver 2 | |
+---------------------------------+---+
:
data
我将PDF
放入以下javascript
的另一个文件中的var dates = $("div.carhireinfo_dates span.carhireinfodata").text();
var drivers = $("div.carhireinfo_drivers span.carhireinfodata").text();
:
{{1}}
感谢您的帮助。
S上。