我需要实现下一个布局:
这是我的代码:
<fo:block text-align="center">United Nations Organisation</fo:block>
<fo:block border-top-style="solid" text-align="center">(organisation)</fo:block>
<fo:block border-top-style="solid" text-align="center">(department)</fo:block>
但实际上没有绘制第二条水平线。
我怎样才能做到这一点?我究竟做错了什么?
提前致谢!
最佳答案
您可以使用 fo:leader
<fo:block text-align="center">United Nations Organisation </fo:block>
<fo:leader leader-pattern="rule" leader-length="100%" rule-style="solid" rule-thickness="2pt"/>
<fo:block text-align="center" font-size="8pt" margin-top="1mm">(organisation)</fo:block>
<fo:leader leader-pattern="rule" leader-length="100%" rule-style="solid" rule-thickness="2pt"/>
<fo:block text-align="center" font-size="8pt" margin-top="1mm">(department)</fo:block>
关于xsl-fo - 如何在fo-block中绘制水平线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20006354/