# 布局与结构

### 页眉

<figure><img src="/files/76047077c3c1fda94168042de13aefd306461bc2" alt="A GitBook screenshot showing header customization settings"><figcaption></figcaption></figure>

**搜索栏**

在显眼（居中显示在页眉中）和低调（位于右上角）之间更改搜索栏的位置和外观。完全关闭页眉后，搜索栏将改为显示在侧边栏中。

**导航**

在您的网站中添加页眉链接。您可以使用页眉链接指向文档中的重要部分，或链接回您的主网站。

您可以选择链接的外观——普通链接、主按钮或次按钮。启用后，只需为每个链接添加标题和 URL 即可。我们支持两级页眉导航，这意味着您可以拥有在下拉菜单中显示的子链接。

### 公告（高级版和终极版）

开启此选项可在您已发布网站的顶部添加公告横幅。您可以添加消息，并可选地包含一个链接和行动号召，它们会显示在横幅中消息的后面。

您也可以使用与提示块相同的选项更改公告样式——信息、警告、危险和成功。这些样式的颜色由您的语义颜色设置决定。

### 分页

控制在您的空间中每个页面底部显示的“上一页”和“下一页”按钮。您也可以为特定页面设置此功能。

### 页脚（高级版和终极版）

<figure><img src="/files/79fda0e5f96ac0c0828c36ea829816759bba02de" alt="A GitBook screenshot showing footer customization settings"><figcaption></figcaption></figure>

**Logo**

在页脚中添加您的标志或其他图片。

**版权文本**

在页脚中添加版权信息。

**导航**

在页脚中添加链接，并将其整理为多个部分。与页眉类似，为每个链接添加标题和 URL，并为每组链接包含一个分区标题。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/docs-site/customization/layout-and-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
