HTML footer at the last printed page
问题 I want to print my html page. I have more than 1 page and I want print my footer only at the bottom of the last page. My css @page { size: 8.5in 11.0in; margin-left: 0.7cm; margin-top: 0.7cm; margin-top: 0.7cm; margin-bottom: 2.6cm; margin-right: 0.5cm } #footer { clear: both; position: running(footer); z-index: 10; margin-top: -1em; vertical-align: bottom; height: 5%; } @page { @bottom-center { content: element(footer); } } HTML: <body><div id="content"></div> <div id="footer"></div> <body>