我有一个td ,我需要它在导出为PDF时具有特定的底部边框。 我尝试了很多css片段,然而,没有什么能真正解决这个问题。 这是我在浏览器中完美无缺的工作:
td.underline-dotted-thin{ background-image: url('../thin-dots.png'); background-position: bottom left; background-repeat: no-repeat; }但是,当使用dompdf将屏幕导出为PDF时,不会应用最后两个属性( background-position和background-repeat )。
任何有关如何解决此问题的帮助或指导都非常感谢。
编辑
图像在导出的pdf中可见,但是,它位于td的中间并被拉伸。
I have a td and I need it to have a specific bottom border when exported as PDF. I have tried many css snippets, however, nothing really solved the issue. This is the closiest that I got and works perfectly in a browser:
td.underline-dotted-thin{ background-image: url('../thin-dots.png'); background-position: bottom left; background-repeat: no-repeat; }However when the screen is exported as PDF with dompdf, the last two properties (background-position and background-repeat) are not applied.
Any help or guidance for how to solve this issue is much appreciated.
EDIT
The image is visible in the exported pdf, however, it is in the middle of td and is stretched.
最满意答案
截至最新版本(v0.7.0),dompdf不支持background-position或background-size 。
As of the most recent release (v0.7.0) dompdf does not support background-position or background-size.
更多推荐
发布评论