php

您所在的位置:网站首页 php设置表格边框 php

php

2024-07-13 00:24| 来源: 网络整理| 查看: 265

我正在尝试在 html 内的表格中添加边框。下面是我的代码

$phpWord = new \PhpOffice\PhpWord\PhpWord(); $section = $phpWord->addSection(); $html = " name John "; \PhpOffice\PhpWord\Shared\Html::addHtml($section, $html ); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment;filename="test.docx"'); $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007'); $objWriter->save('php://output');

我已经分配了 1 的边界,但它没有工作。我的桌子上没有边框

通过添加样式,it 事件不起作用。请帮忙



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3