HTML Header and footer in all pages while printing html document

后端 未结 4 805
甜味超标
甜味超标 2021-01-18 05:57

I\'ve created a html page with a header,some content and a footer. I tried to get a print of the HTML page, and there was 2 pages. I got the header in first page and the foo

4条回答
  •  借酒劲吻你
    2021-01-18 06:36

    I had the same problem and found simple tags to work best for me.

    content that should be printed as page header
    content that will be spread over all pages consecutively

    The table will look like a simple table in the browser, but in printouts the content of the tag is repeated on each page. No CSS required.

    Tested in Firefox 32, IE 11 and even in MS Word 2010. Word does not translate the tag into "real" page headers, but repeats the content on top of each page. (You may have to switch to "Page View" to actually see the difference in Word).

提交回复
热议问题