我正在尝试将项目符号与正文文本垂直对齐。所以子弹应该在中间(垂直)。但是我不能做到。
<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
发布于 2013-08-27 23:43:22
快速答案是使用包含两列的表。对项目符号使用display-align。我可以为列表测试一些东西,但我可以想象带有项目符号的块的级数维度可能不受列表主体的控制,我不确定。
我测试过了,现在我确定了。如果您在list-item-label上放置一个边框,您将看到块边界仅为list-item-label所需的大小。
要完成此布局,请使用包含两列的表格,第一个单元格包含"display-align="center“,您的项目符号包含内容,第二个单元格包含内容。
https://stackoverflow.com/questions/18457047
复制相似问题