Skip to content

Fix header and footer text format error in README.md #874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,10 @@ worksheet.pageSetup.printTitlesColumn = 'A:C';
| Double Japan Postcard Rotated | 82 |
| 16K 197x273 mm | 119 |

## Headers and Footers
## Header Footer

Here's how to add headers and footers. The added content is mainly text, such as time, introduction, file information, etc., and you can set the style of the text. In addition, you can set different texts for the first page and even page.

Here's how to add headers and footers.
The added content is mainly text, such as time, introduction, file information, etc.,
and you can set the style of the text.
In addition, you can set different texts for the first page and even page.

Note: Images are not currently supported.

Expand All @@ -400,7 +398,9 @@ worksheet.headerFooter.differentFirst = true;
worksheet.headerFooter.firstHeader = "Hello Exceljs";
worksheet.headerFooter.firstFooter = "Hello World"
```

**Supported headerFooter settings**

| Name | Default | Description |
| ----------------- | --------- | ----------- |
| differentFirst | false | Set the value of differentFirst as true, which indicates that headers/footers for first page are different from the other pages |
Expand Down
4 changes: 4 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ worksheet.pageSetup.printTitlesColumn = 'A:C';
| 16K 197x273 mm | 119 |

## 页眉和页脚{#header-footer}

这里将介绍如何添加页眉和页脚,添加的内容主要是文本,比如时间,简介,文件信息等,并且可以设置文本的风格。此外,也可以针对首页,奇偶页设置不同的文本。

警告:不支持添加图片
Expand All @@ -388,7 +389,9 @@ worksheet.headerFooter.differentFirst = true;
worksheet.headerFooter.firstHeader = "Hello Exceljs";
worksheet.headerFooter.firstFooter = "Hello World"
```

**属性表**

| 名称 | 默认值 | 描述 |
| ----------------- | --------- | ----------- |
|differentFirst|false|开启或关闭首页使用独特的文本内容|
Expand All @@ -401,6 +404,7 @@ worksheet.headerFooter.firstFooter = "Hello World"
|firstFooter|null|首页的页脚内容,differentFirst = true 后有效|

**变量表**

| 名称 | 描述 |
| ----------------- | ----------- |
|&L|设置位置为左边|
Expand Down