Wordprocessing Document文档
The <w:document> element is the root element of the main content part.<w:document>元素是主要内容部分的根元素。
<w:document>
<w:body>
<w:p/>
</w:body>
</w:document>
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference §§ 17.2.3.ECMA-376,第3版(2011年6月),基本原理和标记语言参考§§ 17.2.3。
Elements:元素:
The <w:document> element can contain the elements below.<w:document>元素可以包含以下元素。
Element元素 | Description描述 |
background |
Specifies the background for every page of the document. 指定文档每页的背景。The background can be either an DrawingML object or a sold color. 背景可以是DrawingML对象或出售的颜色。If it is a DrawingML object, then the background element contains a drawing element. 如果它是DrawingML对象,则background元素包含一个drawing元素。If a solid color is used, then background is an empty element, with the color specified in the following attributes.如果使用纯色,则background为空元素,颜色在以下属性中指定。
Attribute属性 | Description描述 |
color |
Specifies the color. 指定颜色。Possible values are either hex-encoded RGB values (in RRGGBB format) or auto. E.g., <w:background w:color="2C34FF"/>可能的值是十六进制编码的RGB值(RRGGBB格式)或auto。例如,<w:background w:color="2C34FF"/> |
themeColor |
Specifies the base theme color (which is specified in the Theme part). 指定基本主题颜色(在主题部分中指定)。E.g., 例如,<w:background w:themeColor="accent5"/> |
themeShade |
Specifies the shade value applied to the theme color (in hex encoding of values 0-255). 指定应用于主题颜色的阴影值(以值0-255的十六进制编码)。E.g., 例如,<w:background w:themeColor="accent2" w:themeShade="BF"/> |
themeTint |
Specifies the tint value applied to the theme color (in hex encoding of values 0-255). 指定应用于主题颜色的色调值(以值0-255的十六进制编码)。E.g., 例如,<w:background w:themeColor="accent2" w:themeTint="99"/> |
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.2.1.ECMA-376,第3版(2011年6月),基本原理和标记语言参考§ 17.2.1。
|
body |
Specifies the contents of the body of the document. It has no attributes. 指定文档正文的内容。它没有属性。It can contain a number of elements, most related to tracking changes and adding customer XML. 它可以包含许多元素,其中大部分与跟踪更改和添加客户XML相关。The core elements are listed below.核心要素如下所示。
Elements:元素:
Element元素 | Description描述 |
p |
Specifies a paragraph of content. See Paragraphs.指定内容段落。见段落。
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.3.1.22.ECMA-376,第3版(2011年6月),基本原理和标记语言参考§17.3.1.22。
|
sectPr |
Specifies the section properties for the final section. See Sections.指定最终横断面的横断面特性。请参见章节。
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.6.17.ECMA-376,第3版(2011年6月),基本原理和标记语言参考§17.6.17。
|
tbl |
Specifies a table. See Tables.指定表格。请参见表格。
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.38.ECMA-376,第3版(2011年6月),基本原理和标记语言参考§17.4.38。
|
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.2.2.ECMA-376,第3版(2011年6月),基本原理和标记语言参考§17.2.2。
|
Attributes:
<w:document> has a single attribute:具有单个属性:
Attribute属性 | Description描述 |
conformance |
Specifies the conformance class to which the document conforms. Possible values are:指定文档符合的一致性类。可能的值包括:
- strict -
the document conforms to Office Open XML Strict文档符合Office Open XML Strict
- transitional -
the document conforms to Office Open XML Transitional. This is the default value.文档符合Office Open XML过渡。这是默认值。
|
Related HTML element:相关HTML元素:
<html>
<head>
...
</head>
<body>
...
</body>
</html>