提问人:Prashant 提问时间:6/6/2022 更新时间:7/17/2022 访问量:104
Docx4j HTML <强>和下划线不起作用
Docx4j HTML <Strong> and underline not working
问:
我正在使用 Docx4j/ImportXHTML 生成 Word 文档。但它没有用文本下划线。
我的HTML是:
<h2 style="font-weight: normal; font-size: 19px; text-align: justify;">
<span style="text-decoration: underline; color: #ff6600;">
<span style="font-family: 'Helvetica 45 Light';"><strong>My Service Space</strong></span></span>
</h2>
此 HTML 由前端的 TinyMCE 编辑器生成。在 HTML 查看器中,下划线存在,但不会在 Doc 中生成。
有什么解决它的建议吗?谢谢
答:
0赞
CrltsMrtnz
7/17/2022
#1
试试这个
<h2 style="font-family: 'Helvetica 45 Light'; font-weight: bold; font-size: 19px; text-align: justify; color: #ff6600;"> <span style="text-decoration: underline;">My Service Space</span> </h2>
我希望能解决这个问题
评论