table { -fs-table-paginate: paginate; }造成border-collapse:collapse无效了
CSS to PDF,the css in Flying Saucer : -fs-table-paginate result in border-collapse:collapse invalid
https://stackoverflow.com/questions/10512324/css-to-pdf-the-css-in-flying-saucer-fs-table-paginate-result-in-border-collap
table{
border:1px solid #000000;
border-collapse:collapse;
-fs-table-paginate: paginate;
}
table td{
border:1px solid #000000;
word-wrap:break-word;
white-space:normal;
overflow:hidden;
text-align:left;
line-height:16px;
height:16px;
}
table tr{
page-break-inside:avoid;
}
table thead tr th{
background:#f2f2f2;
border:1px solid #000000;
text-align:center;
}
table tr th{
background:#f2f2f2;
border:1px solid #000000;
text-align:center;
}
table {
-fs-table-paginate: paginate;
border-spacing: 0;
}
Init all th and td one by one with border set to 0px : border: 0px;
<td style="border: 0px; border-left: 1px solid #ddd;">some texte</td>