【发布时间】:2020-02-01 18:08:37
【问题描述】:
我在 PhpWord 中有一个问题,我正在尝试使用 Html 代码将图像添加到单词中,但这不起作用。 我使用了 Visual Studio 代码,图像位于 public 文件夹中。 谢谢你帮助我。
$html = '<table>
<tr>
<th>Header</th>
<td>Content</td>
<td> <img src'.public_path().'/phone.jpg></td>
</tr>
</table>';
\PhpOffice\PhpWord\Shared\Html::addHtml($section, $html);
【问题讨论】: