You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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:

  1. Place a cross-column block container between your two rx:flow-section elements. This container will ignore the column layout of the flow sections and span the full page width.
  2. Inside the container, use a simple fo:block with 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 on fo:block-container tells 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-top and margin-bottom to control spacing between the line and your flow sections.
  • Modify the border-bottom value to tweak the line’s style: use 2pt dashed #666 for 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 10:48:41