HTML 通过导航栏中的链接跳转到内容

HTML jump to content by links in nav column

在本站左侧导航栏中: https://github.com/orderedlist/minimal

(实现为
<ul>
<li><a href="... 我真的很想能够添加跳转链接,以便单击其中之一滚动右栏。

这样,用户可以在左侧单击一个主题,然后在右侧 jumps/scrolls 部分单击该内容。这可以在没有模糊或麻烦的情况下完成吗(比如安装不同的主题)。

您可以将 href 属性定位到您想要的部分,只需定位元素的 id

例如:

<li><a href="#column2">click me to jump to column 2</a></li>

<div id="column2">section 2</div>