XSL-FO 1.0 强制内容以两列格式填充第一列
XSL-FO 1.0 Forcing content to fill first column in two column format
我正在为一个小 table 使用两列布局。
<fo:block-container column-count="2">
<fo:table border-bottom="solid" border-bottom-width=".5pt"
border-top="solid" table-layout="fixed" table-omit-header-at-break="false"
table-omit-footer-at-break="true" text-align="start" white-space-treatment="preserve"
width="4in" hyphenate="true" cols="4">
<fo:table-column column-number="1" column-width="30%"/>
<fo:table-column column-number="2" column-width="20%"/>
<fo:table-column column-number="3" column-width="20%"/>
<fo:table-column column-number="4" column-width="20%"/>
<fo:table-header>
<xsl:call-template name="NI-HEADER"/>
</fo:table-header>
<fo:table-body>
<xsl:call-template name="SortParts"/>
</fo:table-body>
</fo:table>
</fo:block-container>
效果很好,只是最后一页只有十行,而且被分成两列。有没有办法在进入下一栏之前强制最后一页填充第一栏?
以下扩展 属性 将帮助您:
axf:column-fill / CSS (-ah-)column-fill
http://www.antenna.co.jp/AHF/help/v62e/ahf-ext.html#axf.column-fill
<fo:block-container axf:column-count="2">
<fo:block-container axf:column-count="2" axf:column-fill="auto">
我正在为一个小 table 使用两列布局。
<fo:block-container column-count="2">
<fo:table border-bottom="solid" border-bottom-width=".5pt"
border-top="solid" table-layout="fixed" table-omit-header-at-break="false"
table-omit-footer-at-break="true" text-align="start" white-space-treatment="preserve"
width="4in" hyphenate="true" cols="4">
<fo:table-column column-number="1" column-width="30%"/>
<fo:table-column column-number="2" column-width="20%"/>
<fo:table-column column-number="3" column-width="20%"/>
<fo:table-column column-number="4" column-width="20%"/>
<fo:table-header>
<xsl:call-template name="NI-HEADER"/>
</fo:table-header>
<fo:table-body>
<xsl:call-template name="SortParts"/>
</fo:table-body>
</fo:table>
</fo:block-container>
效果很好,只是最后一页只有十行,而且被分成两列。有没有办法在进入下一栏之前强制最后一页填充第一栏?
以下扩展 属性 将帮助您:
axf:column-fill / CSS (-ah-)column-fill
http://www.antenna.co.jp/AHF/help/v62e/ahf-ext.html#axf.column-fill
<fo:block-container axf:column-count="2">
<fo:block-container axf:column-count="2" axf:column-fill="auto">