CSS page headers - how to use print margins?

前端 未结 2 1701
逝去的感伤
逝去的感伤 2020-12-31 11:16

I can get a header to print on each page, but I\'m new to print margins. I thought the @page css would work, but it does not seem to affect page margins. If I set the margin

2条回答
  •  一个人的身影
    2020-12-31 11:48

    The accepted answer which is now 4 1/2 years old says:

    "The short answer is to avoid HTML/CSS printing if you need to ensure a specific layout."

    These days you may do HTML/CSS printing for comparatively simple layouts in browsers or if you use a tool like wkhtmltopdf you can go for more complex layouts. See also http://www.toccon.com/toc2013/public/schedule/detail/26714

提交回复
热议问题