Sticking custom footer on each page to bottom while printing

后端 未结 4 1072
囚心锁ツ
囚心锁ツ 2020-12-14 10:56

I want to print 30 pages with some data on top and some data on bottom. My code looks like:

<...>



4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 11:18

    If you use the and elements for your header and footer

    thead   {display: table-header-group;   }
    
    tfoot   {display: table-footer-group;   }
    

    Source: http://www.codeproject.com/Questions/247645/Print-html-table-into-A4-size

提交回复
热议问题