根本没有出现provisional-label-separation
属性影响间距。我也尝试过margin-*
,padding-*
,space-before
和space-after
,但列表项之间的空间仍然不会改变。我怎样才能改变这样的列表中的列表项之间的垂直空间(如果这有所影响,我正在渲染为PDF格式)?无法更改XSL-FO中的列表项之间的空格
<fo:list-block provisional-distance-between-starts="3mm"
provisional-label-separation="3mm"
space-after="3mm" >
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()" font-size="9pt">
<fo:block>Day care or nanny expenses</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()" font-size="9pt">
<fo:block>Field trips</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()" font-size="9pt">
<fo:block>School supplies</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>•</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()" font-size="9pt">
<fo:block>Music lessons and other extracurricular activities</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
你使用什么FO处理器? – mzjn
@mzjn我如何知道?我正在使用C#。 – user1477388
@mzjn我在我的项目中参考了'fop',我相信这是格式化对象处理器。 – user1477388