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

前端 未结 20 1412
迷失自我
迷失自我 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:16

    the best solution came from biskrem muhammad.

    but there is a little problem with its answer. when page count bigger than 1, footer not locating to the footer of the last page.

    add this little css to your element collapsed by footer-info

    position: fixed;
    bottom: 0;
    

提交回复
热议问题