0

我需要在 Apache-FOP 中表的列之间放置一个“间隙”:

<fo:table column-gap="2mm" width="156mm" height="260mm" table-layout="fixed" page-break-after="always">
            <fo:table-column column-number="1" column-width="50mm"/>
            <fo:table-column column-number="2" column-width="50mm"/>
            <fo:table-column column-number="3" column-width="50mm"/>

            <fo:table-body start-indent="0pt" text-align="start" font-family="Arial, Helvetica, Tahoma, sans-serif"
                           font-weight="normal" font-size="10pt">

            // rows/cells stuff
            </fo:table-body>
        </fo:table>

我尝试使用 column-gap、spacing-before、margin-left 等,但列仍然粘在一起。知道如何在两者之间放置间隙吗?也许唯一的解决方案是创建“空”列?

4

2 回答 2

0

如果我没记错的话,我的 xsl-fo 文档中的表格单元元素总是会阻塞。间隙和距离通过块元素的边距属性来实现。

于 2012-09-22T19:32:40.457 回答
0

不确定是否仍然相关,但您可以轻松地在您希望有间隙的列之间放置另一个非常小的列。

于 2016-12-01T18:13:49.083 回答