How to make a HTML Page in A4 paper size page(s)?

前端 未结 15 1993
有刺的猬
有刺的猬 2020-11-22 16:30

Is it possible to make a HTML page behave, for example, like a A4-sized page in MS Word?

Essentially, I want to be able to show the HTML page in the browser, and out

15条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 17:10

    I've used HTML to generate reports which print-out correctly at real sizes on real paper.

    If you carefully use mm as your units in the CSS file you should be OK, at least for single pages. People can screw you up by changing the print zoom in their browser, though.

    I seem to remember everything I was doing was single page, so I didn't have to worry about pagination - that might be much harder.

提交回复
热议问题