Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何从ASP中另一个页面上的 href 链接跳转到内容位置?
我理解下面显示的锚概念,但这仅适用于 html 而不是ASP。
<a href="yoursite.html#jumpHere">link</a>
锚标记适用于除.html.
.html
任何呈现为html内容的文件都可以使用锚标记。
html
因此,您的链接可能是:
<a href="yoursite.aspx#jumpHere">link</a>
那么只要渲染的yoursite.aspx内容上有一个 ID为 的元素jumpHere,浏览器就会“跳转”到那个元素。
yoursite.aspx
jumpHere