> 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="/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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
