> For the complete documentation index, see [llms.txt](https://gitbook-open-v2-preview.gitbook.workers.dev/url/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-open-v2-preview.gitbook.workers.dev/url/gitbook.com/docs/documentation/zh/creating-content/blocks/tabs.md).

# 标签页

选项卡块是一个单独的块，可用于添加多个选项卡。

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

### 添加或删除选项卡

要在选项卡块中添加新选项卡，请将鼠标悬停在选项卡边缘，然后点击 `+` 出现的按钮。要删除选项卡，请打开该选项卡的 **选项菜单** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/e1df373962dc4830bcb786d7e5cb3cce603367d3" alt="The Options menu icon in GitBook"></picture> 然后选择 **删除**.

### 添加、更改或删除选项卡项图标

要为选项卡设置关联图标，请打开该选项卡的 **选项菜单** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/e1df373962dc4830bcb786d7e5cb3cce603367d3" alt="The Options menu icon in GitBook"></picture> 然后选择 **设置图标**。从图标选择器中选择图标。

要更改图标，请打开该选项卡的 **选项菜单** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/e1df373962dc4830bcb786d7e5cb3cce603367d3" alt="The Options menu icon in GitBook"></picture> 然后选择 **更改图标**。然后，从图标选择器中选择图标。

要移除图标，请打开该选项卡的 **选项菜单** <picture><source srcset="/files/QLUQj6waZRiK6FpSqrt6" media="(prefers-color-scheme: dark)"><img src="/files/e1df373962dc4830bcb786d7e5cb3cce603367d3" 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 dynamically by asking a question.

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

```
GET https://gitbook-open-v2-preview.gitbook.workers.dev/url/gitbook.com/docs/documentation/zh/creating-content/blocks/tabs.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.
