php |
您所在的位置:网站首页 › php设置表格边框 › php |
我正在尝试在 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 |