page-break-before:auto不为我工作....为什么? [英] page-break-before:auto not working for me....why?
问题描述
您好,我的stackflow时间问题解决好友,
我使用css风格的页面被推出一个PDF,包含一组框准备团队打印出来。
但是,一些盒子位于页面之间,并被切成两半。
我发现了...
http://www.w3schools.com/Css/pr_print_pageba.asp
.. 。这不是我在汽车上工作,其他值是不适当的。
页面正在弹出div是浮动的:留在div内的内容
:
[div] [div] [div]
[div] [div] [div]最后一个div溢出到两个页面上
每个div都有一个page-break-before:auto,但是div仍然分成两个页面。
为什么这对我不起作用?
可以帮助吗?
page-break-after:always; page-break-before:always;然而...我觉得mVChr的解决方案也适用于其他,但不是在我的情况下。
非常感谢
Hello my stackflow timesaving problem solving buddies,
I'm using css to style a page that is being pushed out into a PDFand contains a set of boxes ready for teams to print out.
However, some boxes are in-between pages and being cut in two.
I found the folowing...
http://www.w3schools.com/Css/pr_print_pageba.asp
...which is not working for me on auto, the other values are not appropriate.
The page is spitting out divs whict are float:left with content inside the div
layout:
[div] [div] [div]
[div] [div] [div]
[div] [div] [div] < Last div is spilling onto two pages
each div had a page-break-before:auto but the divs still are splitting onto 2 pages at times.
Why is this not working for me?
can you help?
解决方案 I managed to get this working by applying
page-break-after:always;page-break-before:always;
However... i feel mVChr's solution would work also for other, but not in my case.
Many thanks
这篇关于page-break-before:auto不为我工作....为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!