本文主要是介绍WordProcessingML的解剖学翻译04--Wordprocessing段落02--属性01--水平对齐,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Wordprocessing 段落 – 属性
对齐 / 调整
用 <w:jc> 元素指定要应用于段落的对齐方式或调整方式。
<w:pPr><w:jc w:val="end"/>
</w:pPr>
参考文献:ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.3.1.13.
Word 2007 示例:
<w:pPr><w:jc w:val="left"/>
</w:pPr><w:pPr><w:jc w:val="right"/>
</w:pPr><w:pPr><w:jc w:val="both"/>
</w:pPr>
属性:
最常用的属性值如下:
val
指定段落对齐的值。可能的值为:
-
start - 左到右文档的左边距对齐。
注意:在2003版标准中,该值为 left。 -
end - 左到右文档的右边距对齐。
注意:在2003版标准中,该值为 right。 -
center - 将文字居中。
-
both - 在两个页边距之间均等地对齐文本,但字符间距不受影响。
-
distribute - 在两个页边距之间均等地对齐文本,并且单词间和字符间的间距都会受到影响。
相关的开放文档格式(Open Document Format, ODF)属性:
通过在应用于样式的样式内的 style:paragraph-properties 元素上设置 fo:text-align 属性,可以指定段落的对齐方式。可能的值是 start, end, left, right, center, 和 justify。
参议文献:Open Document Format for Office Applications Version 1.2 (May, 2011) § 20.216
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard"><style:paragraph-properties fo:text-align="end"/>
</style:style>
相关的 HTML / CSS 属性:
text-align: right;
text-align: center;
text-align: justify;
CSS 示例:
I feel that there is much to be said for the Celtic belief that the souls of those whom we have lost are held captive in some inferior being, in an animal, in a plant, in some inanimate object, and so effectively lost to us until the day (which to many never comes) when we happen to pass by the tree or to obtain possession of the object which forms their prison.
Then they start and tremble, they call us by our name, and as soon as we have recognized their voice the spell is broken. We have delivered them: they have overcome death and return to share our life. And so it is with our own past. It is a labor in vain to attempt to recapture it: all the efforts of our intellect must prove futile.
The past is hidden somewhere outside the realm, beyond the reach of intellect, in some material object (in the sensation which that material object will give us) which we do not suspect. And as for that object, it depends on chance whether we come upon it or not before we ourselves must die
这篇关于WordProcessingML的解剖学翻译04--Wordprocessing段落02--属性01--水平对齐的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!