HTML 导入与导出

When you export a file to an HTML document, the description and the user-defined file properties are included as META tags between the HEAD tags of the exported document. META tags are not displayed in a Web browser, and are used to include information, such as keywords for search engines on your Web page. To set the properties of the current document, choose File - Properties, click the Description or Custom Properties tabs, and then type the information you want.

当文件以 HTML 文档格式导出时,以下文件属性将被转换为 META 标记:

ODF Property

HTML Tags

Title

<TITLE>

主题

<META NAME="CLASSIFICATION" CONTENT="Field Content">

关键字

<META NAME="KEYWORDS" CONTENT="Field Content">

说明

<META NAME="DESCRIPTION" CONTENT="Field Content">

Custom Properties

<META NAME="Custom field name" CONTENT="Custom field content">


note

当导入含有 META 标记的 HTML 文件时,标记的内容将被加入到 LibreOffice 的相应文件属性框中。


tip

关键字之间必须用逗号隔开。关键字可以包含空白字符或分号。


导入提示

当导入 HTML 文档时,以下 META 标记将被自动转换为 LibreOffice 字段: <META HTTP-EQUIV="REFRESH"...> 和 <META NAME="..." ...>,其中,NAME 相当于 AUTHOR、CREATED、CHANGED、CHANGEDBY、DESCRIPTION、KEYWORDS 或 CLASSIFICATION。

位于 TABLE 标记之前的脚本、注释和 META 标记被插入到表格的第一个单元格中。

HTML 文档页眉中的脚本和 META 标记将被导入并锁定到文档的第一个段落中。

要设置有关导入 HTML 标记的选项,请选择「 - 加载/保存 - HTML 兼容性」。 除了 <META NAME="GENERATOR"...> (该标记被忽略) 以外,所有含有「HTTP-EQUIV」或「NAME」的已知 META 标记都将以 LibreOffice 批注的形式导入。

导出提示

文档中第一段起始处的批注和脚本字段被导出到 HTML 文档的页眉。如果文档的起始处是表格,则表格的第一个单元格中的第一段被导出到 HTML 文档的页眉。

请支持我们!