[英]XSL-FO: Set fixed static-content height?
有什么辦法可以為xsl-fo中的靜態內容設置固定高度。 我添加了height =“ 20mm”屬性,但是它不起作用。
我的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>
可以指導我解決這個問題。
height
屬性不適用於fo:static-content
(請參閱https://www.w3.org/TR/xsl11/#fo_static-content )。 使用extent
你的財產fo:region-after
(請參閱第https://www.w3.org/TR/xsl11/#extent和https://www.w3.org/TR/xsl11/#fo_region-after ) 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.