dongtui9168 2016-01-05 07:59
浏览 108
已采纳

MPDF - 第一页的不同背景

I am using MPDF to generate PDF-files out of HTML code. Unfortunately, the layout for the first page is different from the rest of the pages.

Is there any way to give the first page a different background from the rest? And how about layout, is there any way to set the header and footer on a different place or remove the whole header from the second till last page?

  • 写回答

1条回答 默认 最新

  • doutang7415 2016-01-13 17:28
    关注
    <style>
    @page :first {
        background: url("http://example.com/first.svg") 50% 0 repeat;
    }
    @page {
        background: url("http://example.com/page.svg") 50% 0 repeat;
    }
    ...
    </style>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度