How to use HTML to print header and footer on every printed page of a document?

前端 未结 20 1758
迷失自我
迷失自我 2020-11-21 16:51

Is it possible to print HTML pages with custom headers and footers on each printed page?

I\'d like to add the word \"UNCLASSIFIED\" in Red, Arial, size 16pt to the t

20条回答
  •  庸人自扰
    2020-11-21 17:15

    I have been searching for years for a solution and found this post on how to print a footer that works on multiple pages without overlapping page content.

    My requirement was IE8, so far I have found that this does not work in Chrome. [update]As of 1 March 2018, it works in Chrome as well

    This example uses tables and the tfoot element by setting the css style:

    tfoot {display: table-footer-group;}
    

提交回复
热议问题