Latest web development tutorials

XSL-FO leader 對象

XSL-FO 參考手冊 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]
azimuth leader-alignment
alignment-adjust leader-length
alignment-baseline leader-pattern
background-attachment leader-pattern-width
background-color left
background-image letter-spacing
background-repeat line-height
background-position-horizontal margin-bottom
background-position-vertical margin-left
baseline-shift margin-right
border-after-color margin-top
border-after-style padding-after
border-after-width padding-before
border-before-color padding-bottom
border-before-style padding-end
border-before-width padding-left
border-bottom-color padding-right
border-bottom-style padding-start
border-bottom-width padding-top
border-end-color pause-after
border-end-style pause-before
border-end-width pitch
border-left-color pitch-range
border-left-style play-during
border-left-width relative-position
border-right-color richness
border-right-style right
border-right-width role
border-start-color rule-style
border-start-style rule-thickness
border-start-width source-document
border-top-color space-end
border-top-style space-start
border-top-width speak
bottom speak-header
color speak-numeral
cue-after speak-punctuation
cue-before speech-rate
dominant-baseline stress
elevation text-altitude
font-family text-depth
font-selection-strategy text-shadow
font-size top
font-size-adjust visibility
font-stretch voice-family
font-style volume
font-variant word-spacing
font-weight
id
keep-with-next
keep-with-previous


XSL-FO 參考手冊 XSL-FO參考手冊