> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/chuang-jian-nei-rong/blocks/tabs.md).

# 选项卡

添加选项卡，这样你就可以展示大块相关信息，而无需创建一篇冗长、难以导航的页面

选项卡块是一个单一块，可添加多个选项卡。

每个选项卡都可以包含多个其他块，且类型不限。因此，你可以在同一个选项卡块中的各个选项卡里添加代码块、图片、集成块等更多内容。

### 添加或删除选项卡

要向选项卡块中添加新选项卡，请将鼠标悬停在选项卡边缘上，然后单击出现的 `+` 按钮。要删除选项卡，请打开该选项卡的 **选项菜单** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FaS1QvPIBVYwhpFTGcPBN%2Foptions-menu.svg?alt=media&amp;token=3ee40bbf-f4fb-41fa-aa30-306b559cbe88" alt="The Options menu icon in GitBook"></picture> 然后选择 **删除**.

### 添加、更改或移除图标

要添加或更改图标，请打开该选项卡的 **选项菜单** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FaS1QvPIBVYwhpFTGcPBN%2Foptions-menu.svg?alt=media&amp;token=3ee40bbf-f4fb-41fa-aa30-306b559cbe88" alt="The Options menu icon in GitBook"></picture>。然后选择 **设置图标** 或 **更改图标**，并选择一个图标。

要移除图标，请打开该选项卡的 **选项菜单** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FaS1QvPIBVYwhpFTGcPBN%2Foptions-menu.svg?alt=media&amp;token=3ee40bbf-f4fb-41fa-aa30-306b559cbe88" alt="The Options menu icon in GitBook"></picture>。然后选择 **移除图标**.

### 示例

以下是一个列出与特定平台相关说明的示例：

{% tabs %}
{% tab title="Windows" icon="windows" %}
以下是 Windows 的说明
{% endtab %}

{% tab title="macOS" icon="apple" %}
以下是 macOS 的说明
{% endtab %}

{% tab title="Linux" icon="linux" %}
以下是 Linux 的说明
{% endtab %}
{% endtabs %}

### Markdown 中的表示方式

```markdown
{% tabs %}

{% tab title="Windows" icon="windows" %} 以下是 Windows 的说明 {% endtab %}

{% tab title="macOS" icon="apple" %} 以下是 macOS 的说明 {% endtab %}

{% tab title="Linux" icon="linux" %} 以下是 Linux 的说明 {% endtab %}

{% endtabs %}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/zh/chuang-jian-nei-rong/blocks/tabs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
