• 热门标签

当前位置: 主页 > 航空资料 > 计算机 >

时间:2010-08-09 13:24来源:蓝天飞行翻译 作者:admin
曝光台 注意防骗 网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者

法不同,但值本身的句法是完全一样的。要说明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.aero.cn
航空翻译 www.aviation.cn
本文链接地址:XML实用大全(152)