当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO block 对象

XSL-FO
XSL-FO 介绍
XSL-FO 文档
XSL-FO 区域
XSL-FO 输出
XSL-FO 流程
XSL-FO 页面
XSL-FO 块状区域
XSL-FO 列表
XSL-FO 表格
XSL-FO 和 XSLT
XSL-FO 软件
XSL-FO 参考资料

XSL-FO block 对象


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 218 ::
收藏到网摘: n/a

Definition and Usage
定义和用法

The <fo:block> object defines a block of output. Blocks are sequences of output in rectangular boxes.
<fo:block> 对象的作用是:定义了一个结果输出区域。输出的结果按照顺序写入一个矩形框中(此矩形框即是结果输出区域)

The <fo:block> object is used to format paragraphs, titles, headlines, etc.
<fo:block>对象的作用是:定义一个段落、小标题和大标题等等。


Syntax
语法

<fo:block> <!--	Contents:(#PCDATA|bidi-override|character|	external-graphic|instream-foreign-object|	inline|inline-container|leader|page-number|	page-number-citation|basic-link|multi-toggle|	block|block-container|table-and-caption|	table|list-block)* -->
</fo:block>

Properties
属性

属性 [A-J] 属性[K-Z]
azimuth keep-together
background-attachment keep-with-next
background-color keep-with-previous
background-image language
background-repeat last-line-end-indent
background-position-horizontal left
background-position-vertical linefeed-treatment
border-after-color line-height
border-after-style line-height-shift-adjustment
border-after-width line-stacking-strategy
border-before-color margin-bottom
border-before-style margin-left
border-before-width margin-right
border-bottom-color margin-top
border-bottom-style orphans
border-bottom-width padding-after
border-end-color padding-before
border-end-style padding-bottom
border-end-width padding-end
border-left-color padding-left
border-left-style padding-right
border-left-width padding-start
border-right-color padding-top
border-right-style pause-after
border-right-width pause-before
border-start-color pitch
border-start-style pitch-range
border-start-width play-during
border-top-color relative-position
border-top-style richness
border-top-width right
bottom role
break-after script
break-before source-document
color space-after
country space-before
cue-after span
cue-before speak
elevation speak-header
end-indent speak-numeral
font-family speak-punctuation
font-selection-strategy speech-rate
font-size start-indent
font-size-adjust stress
font-stretch text-align
font-style text-align-last
font-variant text-altitude
font-weight text-depth
hyphenate text-indent
hyphenation-character top
hyphenation-keep visibility
hyphenation-ladder-count voice-family
hyphenation-push-character-count volume
hyphenation-remain-character-count white-space-collapse
id white-space-treatment
intrusion-displace widows
  wrap-option

Example 1
案例1

Blocks are sequences of output in rectangular boxes:
结果输出区是一个矩形框,结果按照一定顺序写在其中:

<fo:block border-width="1mm">
This block of output will have a one millimeter border around it.
</fo:block>

Example 2
案例2

Blocks are sequences of output that can be styled individually:
写入该框中的结果可以单独定义样式:

<fo:block font-size="12pt" font-family="sans-serif">
This block of output will be written in a 12pt sans-serif font.
</fo:block>

Example 3
案例3

<fo:block font-size="14pt" font-family="verdana" color="red" space-before="5mm" space-after="5mm">
W3Schools
</fo:block>
<fo:block text-indent="5mm" font-family="verdana" font-size="12pt" space-before="5mm" space-after="5mm">
At W3Schools you will find all the Web-building tutorials you
need, from basic HTML and XHTML to advanced XML, XSL, Multimedia
and WAP.
</fo:block>

Result:
结果


W3Schools

   At W3Schools you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.



评论 (0) All

登陆 | 还没注册?