我有一个网页,一个客户想打印,和我有麻烦身边让我的头部分是让页脚坐在最后打印页的底部,内容目的不只是当

我想是这样

 #printfooter{display: block; position:fixed; bottom: 0;}

,但它在每一页的结束时所显示的页脚。

也许我要求有点过分从CSS ...它是可行的?

我想我应该去疯狂的
的(^ _ ^)

有帮助吗?

解决方案

尝试到主体相对和页脚绝对位置:

body {
    position: relative;
}
#printfooter {
    position: absolute;
    bottom: 0;
}

使用 CSS 3纸质媒介模块你可以使用这样的:

@page:last {
    @bottom-center {
        content: "…";
    }
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top