美文网首页
word+freemarker+itext+flyingsauc

word+freemarker+itext+flyingsauc

作者: bibichuan | 来源:发表于2018-07-07 20:51 被阅读21次

1、通过将word另存为html中要注意

a、flying不能识别用tab来代表的空格。

b、生成的table应该删除widh属性,保留style里面的width定义。

c、在表格内的中文如果过长,将表格撑开,需要添加以下内容,这个时候就要保留table的width定义。

table{

border:1px solid #000;

table-layout:fixed;

word-break:break-strict;

}

table td{

border:1px solid #000;

word-wrap:break-word;

word-break:break-all;

}

d、生成的表格会有多余的border-left,border-right等属性,那就用table td{border:1px solid #000!important;}来代替。

相关文章

网友评论

      本文标题:word+freemarker+itext+flyingsauc

      本文链接:https://www.haomeiwen.com/subject/isaguftx.html