我想将一个表打印为pdf,并在浏览器enter image description here中正确显示以下代码,但是当pdf生成结构时,使用dompdf改变位置enter image description here .... im ..
enter code here<table class="table table-bordered table-striped" border='1' style="border-collapse: collapse;width:100%">
<tr>
<td rowspan="4" style="font-weight: bold">Time</td>
<td colspan="14" style="font-weight: bold;text-align: center">Type Of Accident</td>
</tr>
<tr>
<td colspan="7" style="font-weight: bold;text-align: center">URBAN</td>
<td colspan="7" style="font-weight: bold;text-align: center">RURAL</td>
</tr>
<tr>
<td rowspan="2" style="font-weight: bold">F</td>
<td rowspan="2" style="font-weight: bold">GI</td>
<td rowspan="2" style="font-weight: bold">MI</td>
<td rowspan="2" style="font-weight: bold">NI</td>
<td rowspan="2" style="font-weight: bold;text-align: center">Total Number of Accidents</td>
<td colspan="2" style="font-weight: bold;text-align: center">No. Of Persons</td>
<td rowspan="2" style="font-weight: bold">F</td>
<td rowspan="2" style="font-weight: bold">GI</td>
<td rowspan="2" style="font-weight: bold">MI</td>
<td rowspan="2" style="font-weight: bold">NI</td>
<td rowspan="2" style="font-weight: bold;text-align: center">Total Number of Accidents</td>
<td colspan="2" style="font-weight: bold;text-align: center">No. Of Persons</td>
</tr>
<tr>
<td style="font-weight: bold">Killed</td>
<td style="font-weight: bold">Injury</td>
<td style="font-weight: bold">Killed</td>
<td style="font-weight: bold">Injury</td>
</tr></table>
答案 0 :(得分:-2)
我无法理解你的问题是什么?如果你想打印表ctrl + p在windows机器浏览器中没问题。