找到你要的答案

Q:Link to halfway down another page in sharepoint

Q:链接到SharePoint中的另一页

I am trying to create a link from my homepage to another page a certain place which is not the top of the page, in sharepoint 2013. There's a method I found somewhere on the internet which allows me to link halfway down but only on the same page.

Does anyone know how to link from one page to another and how to determine where it loads.

我想从我的主页到另一个页面的某个地方而不是页面的顶部创建一个链接,SharePoint 2013。有一种方法,我发现在互联网上,它允许我连接一半,但只有在同一页上。

有没有人知道如何从一个页面链接到另一个页面,以及如何确定它在哪里加载。

answer1: 回答1:

You might use anchors to arrive at that certain place on another page. Your anchor must refer to either the element's name or id properties.

Here is an anchor link example:

<a href="anotherpage.aspx#element">Go to a certain place on another page</a>

Here are examples of elements with names and ids:

<h1 name="element">Target Element</h1>

or

<h1 id="element">Target Element</h1>

您可以使用锚到达另一页上的某个位置。您的锚必须引用元素的名称或id属性。

这里是一个锚链接的例子:

<a href="anotherpage.aspx#element">Go to a certain place on another page</a>

下面是名称和id元素的例子:

<h1 name="element">Target Element</h1>

<h1 id="element">Target Element</h1>
javascript  jquery  sharepoint  hyperlink