Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用dompdf转换HTML为PDF. 我要匹配的格式是:
dompdf
HTML
PDF
但是,生成的 PDF 存在以下格式问题:
第一列的属性是:
<td style="width:85% !important;"><p>asdasdasd</p></td>
第二列的属性是:
<td style="width:100px;vertical-align:top; text-align:center;">1234</td>
有什么解决办法吗?
对于迟到的答案感到抱歉,但它与与表格相关的 css 有关。稍微调整一下,错误就消失了。我们必须在 css 中提供固定宽度尺寸来解决它。