当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO list-item-body 对象
The <fo:list-item-body> object contains the content/body of the list-item - typically one or more <fo:block> objects.
<fo:list-item-body>对象包含了list-item的内容/主体,典型的例子是:一个或多个<fo:block>对象。
There are four XSL-FO objects used to create lists:
下面列举了四个XSL-FO对象来创建列表:
<fo:list-item-body> <!-- Contents:(block|block-container| table-and-caption|table|list-block| list-item)+ --> </fo:list-item-body> |
属性 |
---|
id |
keep-together |
role |
source-document |
An XSL-FO list example:
一个XSL-FO列表的案例:
<fo:list-block> <fo:list-item> <fo:list-item-label> <fo:block>*</fo:block> </fo:list-item-label> <fo:list-item-body> <fo:block>Volvo</fo:block> </fo:list-item-body> </fo:list-item> <fo:list-item> <fo:list-item-label> <fo:block>*</fo:block> </fo:list-item-label> <fo:list-item-body> <fo:block>Saab</fo:block> </fo:list-item-body> </fo:list-item> </fo:list-block> |
The output from this code would be:
上述代码将输出下面的结果:
* Volvo * Saab |