runoops.com

XSL-FO leader 对象

XSL-FO 参考手册

定义和用法

<fo:leader> 对象的作用如下:

  • 生成 "." 符号来分隔内容表格中页面数字的标题
  • 创建表单中的输入字段
  • 创建水平规则

如果前导字符长度太长,与整个区域明显不适应,那么它将会另起一行。

只用在 leader-pattern 属性设置为 "use-content" 的情况下,<fo:leader> 对象的子类才不会被忽略;如果 <fo:leader> 不包含子类,并且 leader-pattern 属性设置为 "use-content",那么前导字符会被填充为空白。

如果前导字符需要在一行中填充所有的空格,那么前导字符的最大长度至少与列的宽度相同。

语法

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

属性

属性 [A-K]属性 [L-Z]
azimuthleader-alignment
alignment-adjustleader-length
alignment-baselineleader-pattern
background-attachmentleader-pattern-width
background-colorleft
background-imageletter-spacing
background-repeatline-height
background-position-horizontalmargin-bottom
background-position-verticalmargin-left
baseline-shiftmargin-right
border-after-colormargin-top
border-after-stylepadding-after
border-after-widthpadding-before
border-before-colorpadding-bottom
border-before-stylepadding-end
border-before-widthpadding-left
border-bottom-colorpadding-right
border-bottom-stylepadding-start
border-bottom-widthpadding-top
border-end-colorpause-after
border-end-stylepause-before
border-end-widthpitch
border-left-colorpitch-range
border-left-styleplay-during
border-left-widthrelative-position
border-right-colorrichness
border-right-styleright
border-right-widthrole
border-start-colorrule-style
border-start-stylerule-thickness
border-start-widthsource-document
border-top-colorspace-end
border-top-stylespace-start
border-top-widthspeak
bottomspeak-header
colorspeak-numeral
cue-afterspeak-punctuation
cue-beforespeech-rate
dominant-baselinestress
elevationtext-altitude
font-familytext-depth
font-selection-strategytext-shadow
font-sizetop
font-size-adjustvisibility
font-stretchvoice-family
font-stylevolume
font-variantword-spacing
font-weight 
id 
keep-with-next 
keep-with-previous 

XSL-FO 参考手册