English 中文(简体)
甚至以超文本和中文本印刷进行双面印刷的页数
原标题:Even page-break for double-sided printing in HTML & CSS

I ve got pagebreaks, working for publication media with a Immediate page-break-hereafter/code. 我利用这些报告将多份报告单独放在单项印刷工作中。 不幸的是,当印刷工作翻一番时,页数的中断可能使印刷商开始上一份报告。

是否有办法强迫一页甚至一页? 或者,如果发现某部分内容的哪页数?

最佳回答

社会保障局没有这方面的内在功能。

An idea:
You could maybe try wrapping each of your reports in a div and then using something like jquery to work out the height of the div to figure out whether it ends on an odd page.

如果在奇数页上结束,那就向下页注入了一段空洞的 d子。

EDIT
Obviously this will only really work if you know the dpi at which your page prints on your target printer. There s no magic answer that will just work for all scenarios.

  • 72 dpi (web) = 595 X 842 pixels
  • 300 dpi (print) = 2480 X 3508 pixels ("210mm X 297mm @ 300 dpi")
  • 600 dpi (print) = 4960 X 7016 pixels

You d need to experiment a bit here with your standard printer settings to see what works for you/your client(s). If there are multiple scenarios, you could let them select from a drop-down.

因此,你利用 j子检查碎块的顶峰,对照页的顶峰检查,看干.是否在奇数或甚至一页上结束,那么如果报告在奇数页上结束,就会放下页。

如果用户将使用替代印刷方法,那么你也需要事先知道,因为你只需要做这样做才能进行替代印刷。

问题回答

标准中具有中心功能。 你们已经走上正轨。 使用:

<div style="page-break-after: right">
-- your content --
</div>

问题目前是支持这一问题的唯一主要浏览器。 操作有自己的精炼问题,但可能为你的工作。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!