我已将页脚设置为运行元素。页脚的 HTML 内容设置在文档的末尾,从而使页脚仅显示在文档的最后一页(这是我想要的)。
<!-- DTD declaration -->
<html>
<!-- head -->
<body>
<!-- My content -->
<footer>
<!-- footer content -->
</footer>
</body>
</html>
问题是页脚直接显示在内容下方,而不是其指定位置:
footer {
width: auto;
margin: 0 auto;
position: running(footerIdentifier);
}
@page {
@bottom-center {
content: element(footerIdentifier);
}
}
我已经尝试过经典的方法,但是我需要根据太多不同的内容动态计算推送块,以便每次都获得页脚的完美位置。
这段代码不应该让页脚出现在页面的底部中心吗?
我一直在浏览专门针对Running Elements的手册 ( HTML )( PDF ),但似乎找不到我的错误。