gpt4 book ai didi

pdf-generation - 边界崩溃在 Flying Saucer 中不起作用?

转载 作者:行者123 更新时间:2023-12-01 01:06:22 25 4
gpt4 key购买 nike

在飞碟中,如果我对同一张 table 使用 fs-paginate-table,则边框折叠不起作用。

有没有人知道任何解决方法?

最佳答案

用 :

table {
border-spacing: 0;
}

例子:
table{-fs-table-paginate:paginate;}
td{border:1px solid red}

enter image description here
table{-fs-table-paginate:paginate;border-spacing:0}
td{border:1px solid red}

enter image description here

结果并不完全相同(因为 TD 的边界不会合并),但可以通过仅在 TD 的一侧设置边界来修复。
#t4{-fs-table-paginate:paginate;border-spacing:0}
#t4 td{border-width:0 1px 1px 0;border-color:red}
#t4 tr.firstrow td{border-top-width:1px} /* Assuming first TR has class firstrow */
#t4 td.firstcol{border-left-width:1px} /* Assuming first TD of each line has class firstcol */

enter image description here

关于pdf-generation - 边界崩溃在 Flying Saucer 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18486017/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com