有没有办法在xsl-fo中为static-content设置一个固定的高度?我添加了height=“20‘t”属性,但它不起作用。
我的xsl是这样的:
<fo:static-content flow-name="xsl-region-after"
height="20mm">
<fo:block margin-left="5mm" margin-right="5mm">
<fo:table border-top="1px solid black">
<fo:table-column column-width="95mm" />
<fo:table-column column-width="95mm" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
Entité
Exercice
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
Page
<fo:page-number />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:static-content>可以指导我解决这个问题吗?
发布于 2018-06-06 21:26:17
height属性不适用于fo:static-content (请参见https://www.w3.org/TR/xsl11/#fo_static-content)。请改用fo:region-after上的extent属性(请参见https://www.w3.org/TR/xsl11/#extent和https://www.w3.org/TR/xsl11/#fo_region-after)。
https://stackoverflow.com/questions/50721269
复制相似问题