正文:在每一页打印后出现



我想打印两张网站。我只使用body:after进行打印。问题是:的内容在两个打印页上都出现了。

body:after {
content: "This printout is intended for the customer. Please keep it in a safe place.";
position: absolute;
bottom: 0px;
}

为了更好地理解:我想打印两张内容几乎相同的纸,除了后引号。

我用Jquery的clone()克隆了#内容,但我没有克隆整个内容。如何解决此问题?或者还有更好的方法来做这整件事吗?

当您克隆whitjQuery时,为什么不在正文后添加带有jQuery的"您的报价"?或者你想去的地方!然后你打印出来!然后你决定要附加在哪一页上!

body.append('<div style="position:absolute; bottom:0px;">Your quote</div>');