# 锚点链接的添加方法

## 锚点链接的添加方法

通过使用在活动中设置的URL，利用Experience编辑器添加锚点链接可以轻松实现使页面导航到页面内的特定位置。以下说明具体的配置步骤。

## **配置步骤**

**创建活动** 打开Experience编辑器，创建新活动。

**确定导航目标元素** 确定页面内将作为链接目标的元素，并编辑其HTML。

**添加用于识别的唯一ID** 为确定的元素添加唯一的识别ID。如果已经设置了唯一ID，则无需此操作。 另外，在输入标签时： 请勿忘记在之前添加半角空格。

```
必须为导航目标元素设置能够识别的唯一ID。

ID不能与其他元素重复。
```

识别ID的添加示例：`id="自定义的唯一ID值"`

**设置链接** 编辑活动的创意，设置相应按钮的链接目标。选择"相对路径"作为链接格式，在输入框中输入导航目标元素的唯一ID。输入格式为"#id"。

**确认操作并发布** 使用预览功能确认链接是否正常工作。如果没有问题，请保存活动并发布。


---

# 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://helps.ptengine.com/cn/faq/experience-edit/anchor-link.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.
