我有一个需要打印的网页,我的烦恼在于如何让页脚位于最后一页的底部,而不仅仅是当内容结束时
我尝试了类似于下面的代码:
#printfooter{display: block; position:fixed; bottom: 0;}
但是它在每个页面的末尾显示了页脚。
也许我对CSS要求有点过高了... 这可行吗?
我在想,我应该疯狂地使用<br/>标签 (^_^)
body {
position: relative;
}
#printfooter {
position: absolute;
bottom: 0;
}
使用CSS 3分页媒体模块,您可以像这样使用:
@page:last {
@bottom-center {
content: "…";
}
}