我尝试了以下建议,但都没有奏效,我<fo:block>
一直在两个内部块之间分裂。
- https://stackoverflow.com/a/8656386/526704
- https://stackoverflow.com/a/2230524/526704
- http://www.antennahouse.com/support/qa/QA/2005061001.html
<fo:block keep-with-next="always" page-break-inside="avoid">
<fo:block keep-together="always">
Block # 1, a header
</fo:block>
<fo:block keep-together="always">
Block # 2, a bunch of text
</fo:block>
</fo:block>
如何在页面上将两个内部块保持在一起?我正在使用 FO.NET,以防万一。