曝光台 注意防骗
网曝天猫店富美金盛家居专营店坑蒙拐骗欺诈消费者
和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.aero.cn
航空翻译 www.aviation.cn
本文链接地址:
XML实用大全(158)