dompdf: How to add header on every page except first?
问题 I'm using dompdf to generate a PDF. I've grabbed the code from the dompdf website to add a Header to the pdf and it's working, but I would like to put the header on every page except for the first. Any suggestions? 回答1: You can do this by inserting the header and footer elements after the elements that appear in the first page. For example : <style> .flyleaf { page-break-after: always; } .header, .footer { position: fixed; } .header { top: 0; } .footer { bottom: 0; } </style> <div class=