P粉9501288192023-08-21 00:55:15
If you want to set the element you want to be a footer to position:fixed and bottom:0, when the page prints, it will repeat the element at the bottom of every printed page. For the header element, just set top:0.
For example:
<div class="divFooter">UNCLASSIFIED</div>
CSS:
@media screen { div.divFooter { display: none; } } @media print { div.divFooter { position: fixed; bottom: 0; } }