dpmopn8542 2012-02-03 14:21
浏览 173

DOMPDF <div>标记为页眉和页脚

I need to create a header and footer on a tag using DOMPDF. How can I achieve this?

Assuming I have a header class like this one:

<div class='header'>
    <div>
        <img scr='image1.png' style="width:100px; height:150px" />
        <h1>This is header</h1>
    </div>
</div>

and a footer like this one

<div class='footer'>
    <div>
        <img scr='image1.png' style="width:100px; height:150px" />
        <h1>This is a footer. All rights reserved.</h1>
        <img src = image2.png style="width:100px; height:150px;">
    </div>
</div>

I want to create those <div> tags (class footer and class header) to create the DOMPDF header and footer.
Any suggestion is highly appreciated! Cheers!

  • 写回答

1条回答 默认 最新

  • dps69208 2012-02-03 15:39
    关注

    CSS :

    position:fixed; 
    top: 0; or bottom: 0;
    
    评论

报告相同问题?

悬赏问题

  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。
  • ¥15 livecharts wpf piechart 属性
  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题