0
我在XSL-FO中生成一个表,我的内容是一个可能很大的文本。有什么方法可以调整柱高?我正在使用XSLT生成XSL-FO。 我试过了:XSL-FO中的动态表格单元高度?
<fo:block-container font-family="Times New Roman"height="7.14mm"
overflow="hidden">
但它不起作用。
我在XSL-FO中生成一个表,我的内容是一个可能很大的文本。有什么方法可以调整柱高?我正在使用XSLT生成XSL-FO。 我试过了:XSL-FO中的动态表格单元高度?
<fo:block-container font-family="Times New Roman"height="7.14mm"
overflow="hidden">
但它不起作用。
您的示例代码在字体系列和高度属性之间缺少空格。你也应该在你的容器里放一个fo:block。以下作品适用于我并修复了我的块的高度,隐藏了溢出的文字:
...
<fo:table-cell>
<fo:block-container font-family="Times New Roman" height="7.14mm"
overflow="hidden">
<fo:block>
<xsl:value-of select="fieldWithLongText" />
</fo:block>
</fo:block-container>
</fo:table-cell>
...