答案或评论链接如何工作(stackoverflow,维基百科)?

Ama*_*man 1 html javascript jquery web

Stackoverflow 允许评论或回答链接。这意味着它允许您创建指向特定答案的链接或对帖子的评论。

我的问题是它如何将浏览器拖动到该特定帖子

我知道他们将 id 用于特定的评论或帖子。

使用哪种技术或技术来创造这样的东西?

我在 meta.stackexchange.com 上看过几篇文章,但它没有回答用于创建它的技术或技术?

Ber*_*ron 5

<a />带有片段和元素 ID 的(或标签)。

<!-- <a> element links to the section below -->
<p><a href="#Section_further_down">
  Jump to the heading below
</a></p>

<!-- Heading to link to -->
<h2 id="Section_further_down">Section further down</h2>
Run Code Online (Sandbox Code Playgroud)