2

xslfo を使用して生成された PDF があります。その中に、1 つのセルが 2 つの行のセルにまたがる行を持つテーブルがあります。それがまたがる2つの行セルの中で、下のセルの高さを小さくする必要があり、うまくいかないことをいくつか試しました。これがコードです - どんな助けでも大歓迎です。

<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

これはまだ答えられていないので:

要素に高さ属性を設定する<fo:table-row>とうまくいくはずです。

于 2013-07-16T19:45:14.613 に答える