我正在尝试将项目符号与正文垂直对齐。这样子弹应该在中间(垂直)。但我没能做到。
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
<xsl:call-template name="gbl-bullet-tick-circle"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="10pt">
here is hell lot of text paragraph i want to print...
here is hell lot of text paragraph i want to print...here is hell lot of text
paragraph i want to print...here is hell lot of text paragraph i want to print...
</fo:block>
</fo:list-item-body>
</fo:list-item>
它正在打印下面的东西
. here is hell lot of text paragraph i want to print...
here is hell lot of text paragraph i want to print...here is hell lot of text
paragraph i want to print...here is hell lot of text paragraph i want to print...
但实际上我想把它打印成
here is hell lot of text paragraph i want to print...
. here is hell lot of text paragraph i want to print...here is hell lot of text
paragraph i want to print...here is hell lot of text paragraph i want to print...
以前有人在XML:FO中这样做过吗?请分享一些信息。
事先非常感谢。
谨致问候,Mona
快速答案是使用一个包含两列的表。对项目符号使用显示对齐。我可以为列表测试一些东西,但我想带项目符号的块的进度维度可能不受列表主体的控制,我不确定。
我进行了测试,现在我确信了。如果在列表项标签上放置边框,则会看到块边界仅与列表项标签所需的大小一样大。
要完成此布局,请使用一个两列表,第一个单元格具有"display align="center"和项目符号,第二个单元格包含内容。