小编xso*_*nic的帖子

mPDF - Firefox PDF查看器中的背景图像质量差

我在body标签上创建了一个PDF(使用php库mPDF)和全尺寸背景图像:

body {
    background: url("..path/to/bg.jpg") center no-repeat;
    background-size: cover;
    background-image-resize: 6;
    background-image-resolution: 300dpi;
}
Run Code Online (Sandbox Code Playgroud)

它在chromes,IE和acrobats pdf viewer中看起来很好,但在FF中可怕: 在此输入图像描述

知道如何为Firefox处理这个问题吗?我使用CSS,使用宽度和高度,不同的分辨率,嵌入为.svg,但没有成功.

firefox mpdf

6
推荐指数
1
解决办法
3030
查看次数

标签 统计

firefox ×1

mpdf ×1