【发布时间】:2021-07-22 19:40:12
【问题描述】:
我有以下@page
@page {
size: 210mm 297mm;
background: white;
display: block;
margin-bottom: 15%; // eliminates the page size on the bottom
}
我需要使用flying-saucer-pdf 9.1.22 版在此左侧边距显示页脚。
我尝试了以下代码,但它不起作用:
@media print {
div.divFooter {
margin-bottom: -15% !important; // I need to take advantage of the free space of @page margin bottom
padding: 0;
box-sizing: border-box;
position: fixed;
bottom: 0;
height: 80px;
z-index: 1;
}
}
【问题讨论】:
标签: html css itext margin flying-saucer