Php MPDF背景图像太小
我在div中使用了背景图像,但pdf显示图像缩小到了50%左右。有没有我错过的场景?我试着调整dpi,但没用Php MPDF背景图像太小,php,mpdf,Php,Mpdf,我在div中使用了背景图像,但pdf显示图像缩小到了50%左右。有没有我错过的场景?我试着调整dpi,但没用 <div style="background-image: url(https://rooster/proxy.php?file=1Q73u872H%2Fi%2Fc1.jpg);background-repeat: no-repeat; background-position: 37px 26px; height:365px; width:456px; background-siz
<div style="background-image: url(https://rooster/proxy.php?file=1Q73u872H%2Fi%2Fc1.jpg);background-repeat: no-repeat; background-position: 37px 26px; height:365px; width:456px; background-size:419px 339px;"></div>
我发现,如果我将宽度和高度设置为100%,它会工作,而设置为像素时则不会。