RenderX中如何在两个rx:flow-section间添加贯穿页面的直线?
Adding a Full-Page Line Between RenderX
rx:flow-section Elements Absolutely, you can add a clean, full-page spanning line between two rx:flow-section elements—no repeated lines, just a single divider that runs across the entire page width. Your hunch about fo:leader causing duplicates is spot-on (since it renders within each column), but there’s a straightforward workaround using XSL-FO’s built-in cross-column spanning.
Here’s how to implement it:
- Place a cross-column block container between your two
rx:flow-sectionelements. This container will ignore the column layout of the flow sections and span the full page width. - Inside the container, use a simple
fo:blockwith a border to create your line.
Example Code
<!-- First two-column flow section --> <rx:flow-section column-count="2"> <!-- Your first columned content goes here --> <fo:block>Content for column 1 and 2...</fo:block> </rx:flow-section> <!-- Full-page dividing line --> <fo:block-container span="all" margin-top="12pt" margin-bottom="12pt"> <fo:block border-bottom="1pt solid #000" /> </fo:block-container> <!-- Second two-column flow section --> <rx:flow-section column-count="2"> <!-- Your second columned content goes here --> <fo:block>More content for columns...</fo:block> </rx:flow-section>
Key Details:
- The
span="all"attribute onfo:block-containertells RenderX to ignore the current column setup and make the container span the entire page width. This ensures the line only appears once, not once per column. - Adjust
margin-topandmargin-bottomto control spacing between the line and your flow sections. - Modify the
border-bottomvalue to tweak the line’s style: use2pt dashed #666for a thicker dashed gray line, for example.
This approach is beginner-friendly, no advanced RenderX-specific tricks required—just leveraging standard XSL-FO behavior that plays nicely with rx:flow-section.
内容的提问来源于stack exchange,提问作者J. Lev
相关产品推荐
相关产品推荐

