sách gpt4 ai đã đi

javascript - pdfmake.js中表格的线宽

In lại 作者:行者123 更新时间:2023-11-29 23:26:34 hai mươi bốn 4
mua khóa gpt4 Nike

我正在研究用于创建 pdf 的 pdfmake.js 库。我需要一些帮助来更改表格和单元格的线宽。

我的表对象是

{
table: {
body: [
[
{
text: gHorse.anglesCount,
background: bgfcolor,
color: fcolor,
border: [ true, true, true, true ],
fillColor: ffcolor,
alignment: "center",
"fontSize": 6
}
]
]
},
margin: [ -20, 0, 0, 0 ]
}

1 Câu trả lời

如果你的问题是改变线的宽度,我的回答是:

content: [
layout: {
hLineWidth: function(i, node) {
return (i === 0 || i === node.table.body.length) ? 0.1 : 0.1;
},
vLineWidth: function(i, node) {
return (i === 0 || i === node.table.widths.length) ? 0.1 : 0.1;
}
}
]

关于javascript - pdfmake.js中表格的线宽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48983185/

hai mươi bốn 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com