2

我有一个使用 xslfo 生成的 PDF。在那,我有一个表格,其中有一行,其中一个单元格跨越两行单元格。在它跨越的两个行单元格中,我需要较低的单元格具有较小的高度,并且我尝试了一些不起作用的东西。这是代码 - 任何帮助将不胜感激。

<fo:table-row>
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="before" number-rows-spanned="3">
<fo:block wrap-option="wrap" text-align="left">
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading1"/>
</fo:block>
<fo:block wrap-option="wrap" text-align="left">
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading1b"/></fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="center">
<fo:block wrap-option="wrap" text-align="center">
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading2"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="center">
<fo:block wrap-option="wrap" text-align="center">
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading3"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="before">
<fo:block text-align="center">
<xsl:value-of select="$TextStrings/Deductible"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="before">
<fo:block text-align="center">
<xsl:value-of select="$TextStrings/AsStatedSecB"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
4

1 回答 1

6

由于这仍然没有答案:

在元素上设置height 属性应该可以解决问题。<fo:table-row>

于 2013-07-16T19:45:14.613 回答