Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种在打印时将我网站的左侧区域放在额外页面上的方法。 可能有人有同样的问题,并找到了一个简单的方法来做到这一点。 目前,我的网站正在逐个打印元素,但我想控制它。我想要一个特定的元素打印在下一页上,而不仅仅是在之前的元素之后。
您可以使用媒体查询专门针对打印执行此操作。
@media print { background-color: lightgreen; }