曝光臺 注意防騙
網曝天貓店富美金盛家居專營店坑蒙拐騙欺詐消費者
和background-repeat
• 邊界屬性:border-before-color、border-before-style、border-before-width、border-after-color、border-after-style、
border-after-width 、border-start-color 、border-start-style 、border-start-width 、border-end-color 、
border-end-style 、border-end-width 、border-top-color 、border-top-style 、border-top-width 、
border-bottom-color 、border-bottom-style 、border-bottom-width 、border-left-color 、border-left-style 、
border-left-width 、border-right-color 、border-right-style 、border-right-width 、border 、 border-top 、
border-bottom、border-left、border-right、border-color、border-style 以及border-width
• 分行屬性:page-break-inside、widows、orphans 和wrap-option
• 顏色屬性:color
• 欄屬性:span
• 字體屬性:font-family、system-font、font-size、font-size-adjust、font-stretch、font-style、font-variant、font-weight
和font
• 斷字屬性: country 、hyphenate 、hyphenation-char 、hyphenation-push-char-count 、
hyphenation-remain-char-count、language、script、hyphenation-keep 和hyphenation-ladder-count
• 縮排屬性:text-indent 和1ast-line-end-indent
• 分層屬性:z-index
• 行高屬性:line-height、line-height-shift-adjustment 和line-stacking-strategy
• 頁邊距屬性:margin-bottom、margin-left、margin-right、margin-top、margin、space-before、space-after、
start-indent 和end-indent
• 貼邊屬性:padding-top、padding-bottom、padding-left、padding-right、padding-before、padding-after、
padding-start 和padding-end
• 位置屬性:position、top、bottom、right 和left
• 文本方向屬性:writing-mode
• 可視屬性:visibility
• 空白屬性:white-space-treatment
大多數屬性從CSS 中就熟悉了,其余的將在下面討論。其他塊級元素都有很相似的屬性列表。
15.4.2 內聯格式化對象
內聯格式化對象是以矩形區域來描述的,這個區域可以包括文本或其他內聯區域。內聯區域幾乎通常都是從左到右以行排列。
當一行填滿時,在前一行的下面開始新行。但是,內聯元素放置的準確順序要依賴于書寫方式。例如,當使用希伯來語或阿
拉伯語時,它要了解左邊第一位置的內聯元素的意義,然后從右邊填充。內聯格式化對象包括:
• fo:bidi-override
• fo:character
• fo:first-line-marker
• fo:inline-graphic
XML 實用大全
第 557 頁
• fo:inline-included-container
• fo: inline-rule
• fo:inline-sequence
• fo:list-item-body
• fo:list-item-label
• fo:page-number
• fo:page-number-citation
15.4.3 表格格式化對象
設計的表格格式化對象是CSS2 表格屬性的XSL 等價物。但是,表格在XSL 中的工作方式確實比CSS 中的稍微自然些。對于
大部分內容來說,各個表都是塊級對象,而表中的內容則不是真正的內聯級,也不是塊級。但是,整個一張表可以通過將它
包裝在fo:inline-included-container 中,從而轉換成內聯對象。
有下列九個XSL 表格格式化對象:
• fo:table-and-caption
• fo:table
• fo:table-caption
• fo:table-column
• fo:table-header
• fo:table-footer
• fo:table-body
• fo:table-row
• fo:table-cell
表的根元素不是fo:table,而是fo:table-and-caption,它包括一個fo:table 和一個fo:caption。fo:table 包含
fo:table-header、fo:table-body 和fo:table-footer。表的正文包括fo:table-row 元素,而此元素可劃分到fo:table-cell
元素中。
15.4.4 外聯格式化對象
有下列三個外聯格式化對象:
• fo:float
• fo:footnote
• fo:footnote-citation
外聯格式化對象從現存的內聯或塊對象那里“借用”空間。在頁面上,它們不必出現在相同的元素之間,而在輸出格式化對
象的XML 樹形結構中,它們則出現在相同的元素之間
XML 實用大全
第 558 頁
15.5 水平線
rule 是插入到文本中的水平線。XSL 有兩類水平線。fo:display-rule 格式化對象為塊級元素,它創建一條水平線(如由HTML
的<HR>標記產生的水平線)。fo:inline-rule 格式化對象元素與fo:display-rule 元素類似。但是,顧名思義,fo:inline-rule
是內聯元素,而不是塊級元素。因此,它出現在一行文本的中間,并且不代表分行符。例如,下面是一顯示的水平線:
但是,這個 是內聯水平線。
fo:inline-rule 和fo:display-rule 元素有六個描述這兩種水平線的主要特性:
1.length:線條長,如12pc 或5in
2.rule-orientation:escapement、horizontal、line-progression 或vertical
3.rule-style:在編寫本書時,精確值還未確定
4.rule-thickness:線條的粗細,如1px 或0.1cm
5.vertical-align:baseline、bottom、middle、sub、super、text-bottom、text-top、top 或行長或行高的百分比
6.color:線條的顏色,如pink 或#FFCCCC
例如,下面的這個綠色塊級水平線長7.5 英寸,粗2 磅:
<fo:display-rule length="7.5in"
line-thickness="2pt" color="#00FF00"/>
此外,fo:display-rule 塊級元素的特性中,大多數都是經常使用的,如描述頁邊距和貼邊的特性,fo:inline-rule 也有內
聯元素的常用特性,如line-height。直接與文本有關的特性則是個例外(如字族),很明顯,這些特性對水平線沒有意義。
中國航空網 www.k6050.com
航空翻譯 www.aviation.cn
本文鏈接地址:
XML實用大全(158)