曝光臺 注意防騙
網曝天貓店富美金盛家居專營店坑蒙拐騙欺詐消費者
法不同,但值本身的句法是完全一樣的。要說明fo:block 元素格式化成與某種Times 字體的近似,可以使用下面的CSS 規
則:
fo:block {font-family: New York, Times New Roman, Times, serif }
而XSL 的等價語句可按下列方式,將font-family 包括在fo:block 開始標記中:
<fo:block
font-family=”New York,Times New Roman,Times,serif”>
盡管從表面上來看不同,但樣式名(font-family)和樣式值(New York, Times New Roman, Times, serif)卻是完全一樣
的。CSS 的font-family 屬性指定為一組字體名,各字體名以逗號分開,而順序是從第一選擇到最后選擇。XSL 的font-family
XML 實用大全
第 537 頁
屬性指定為一組字體名,各字體名以逗號分開,選擇順序是從第一個選擇到最后一個選擇。CSS 和XSL 都將關鍵字serif 理
解為任意的襯線字體。
由于本章是基于XSL 草案規范的第四稿,所以無法徹底完成CSS 和XSL 等效屬性的完全同步。在下一個草案中將解
決此問題。
當然,XSL 格式化對象支持許多CSS 中沒有等效屬性的屬性,例如,font-size-adjust、ligature、character 和
hyphenation-keep。所以,需要學習這些屬性,以便最大限度地發揮XSL 的優勢。標準的XSL 屬性有:
• auto-restore
• azimuth
• background
• background-attachment
• background-color
• background-image
• background-position
• background-repeat
• border
• border-after-color
• border-after-style
• border-after-width
• border-before-color
• border-before-style
• border-before-width
• border-bottom
• border-bottom-color
• border-bottom-style
• border-bottom-width
• border-collapse
• border-color
• border-end-color
• border-end-style
• border-end-width
• border-left
• border-left-color
• border-left-style
• border-left-width
• border-right
• border-right-color
• border-right-style
• border-right-width
• border-spacing
• border-start-color
• border-start-style
• border-start-width
XML 實用大全
第 538 頁
• border-style
• border-top
• border-top-color
• border-top-style
• border-top-width
• border-width
• bottom
• break-after
• break-before
• caption-side
• cell-height
• character
• clear
• clip
• color
• column-count
• column-gap
• column-number
• column-width
• country
• cue
• cue-after
• cue-before
• digit-group-sep
• elevation
• empty-cells
• end-indent
• ends-row
• extent
• external-destination
• float
• flow-name
• font
• font-family
• font-height-override-after
• font-height-override-before
• font-size
• font-size-adjust
• font-stretch
• font-style
• font-variant
• font-weight
• format
• height
• href
XML 實用大全
第 539 頁
• hyphenate
• hyphenation-char
• hyphenation-keep
• hyphenation-ladder-count
• hyphenation-push-char-count
• hyphenation-remain-char-count
• id
• indicate-destination
• inhibit-line-breaks
• initial
• initial-page-number
• internal-destination
• keep-with-next
• keep-with-previous
• language
• last-line-end-indent
• left
• length
• letter-spacing
• letter-value
• line-height
• line-height-shift-adjustment
• line-stacking-strategy
• margin
• margin-bottom
• margin-left
• margin-right
• margin-top
• max-height
• max-width
• may-break-after-row
• may-break-before-row
• min-height
• min-width
• name
• n-columns-repeated
• n-columns-spanned
• n-digits-per-group
• n-rows-spanned
• orphans
• overflow
• padding
• padding-after
• padding-before
• padding-bottom
XML 實用大全
第 540 頁
• padding-end
• padding-left
• padding-right
• padding-start
• padding-top
• page-break-inside
• page-height
• page-master-blank-even
• page-master-even
• page-master-first
• page-master-last-even
中國航空網 www.k6050.com
航空翻譯 www.aviation.cn
本文鏈接地址:
XML實用大全(152)