Latest web development tutorials

XSL-FO instream-foreign-object 對象

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

定義和用法

<fo:instream-foreign-object> 對像用於內聯圖形或"generic" 類對象。 在其中,對象的數據以<fo:instream-foreign-object> 的後代形式存在。 通常情況下,是作為一個非XSL 命名空間中的XML 元素子樹(一個常見的格式是SVG)存儲於其內部。

該對象的內容尺寸大小是通過調用對象的size 屬性來定義的,並通過指定content-height、content-width 以及scaling 屬性來縮放尺寸大小。

如果尺寸放大後內容太大了,那麼可以使用overflow 屬性來設置滾動條對溢出部分進行瀏覽。


語法

<fo:instream-foreign-object>
<!--
Contents:(see below)
-->
</fo:instream-foreign-object>

該對像有一個來自於非XSL 命名空間的子類。 它也可能包含非XSL 命名空間的額外屬性。

屬性

属性 [A-J] 属性 [K-Z]
alignment-adjust keep-with-next
alignment-baseline keep-with-previous
azimuth language
background-attachment left
background-color line-height
background-image margin-bottom
background-repeat margin-left
background-position-horizontal margin-right
background-position-vertical margin-top
baseline-shift overflow
block-progression-dimension padding-after
border-after-color padding-before
border-after-style padding-bottom
border-after-width padding-end
border-before-color padding-left
border-before-style padding-right
border-before-width padding-start
border-bottom-color padding-top
border-bottom-style pause-after
border-bottom-width pause-before
border-end-color pitch
border-end-style pitch-range
border-end-width play-during
border-left-color relative-position
border-left-style richness
border-left-width right
border-right-color role
border-right-style scaling
border-right-width scaling-method
border-start-color script
border-start-style source-document
border-start-width space-end
border-top-color space-start
border-top-style speak
border-top-width speak-header
bottom speak-numeral
clip speak-punctuation
content-height speech-rate
content-type stress
content-width text-align
country text-indent
cue-after top
cue-before voice-family
display-align volume
dominant-baseline width
elevation
height
id
inline-progression-dimension


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