这是我在控制器功能中的代码。在这里,我将html表添加到Word文档中,但在docrowspan中却无法获取。请帮助我。
enter code here
$phpWord = new PhpWord();
$section = $phpWord->addSection();
$test = '<table style="border: 1px solid black">
<tr >
<th style="border: 1px solid black">Month</th>
<th style="border: 1px solid black">Savings</th>
<th style="border: 1px solid black">Savings for holiday!</th>
</tr>
<tr>
<td style="border: 1px solid black">January</td>
<td style="border: 1px solid black">$100</td>
<td rowspan="2" style="border: 1px solid black">$50</td>
</tr>
<tr>
<td style="border: 1px solid black">February</td>
<td style="border: 1px solid black">$80</td>
</tr>
</table>';
Html::addHtml($section_last, $test);
....