单击同一页面上的跳转链接/目标回到顶部

时间:2020-02-25 10:46:14

标签: html css

我在导航中添加了两个跳转链接。点击另一个网站(例如主页)上的那些链接中的一个,即可完美跳转!

但是每次单击同一站点上的目标都会失败。一会儿,它跳到目标,但是一秒钟后,它又回到了站点的顶部。

我尝试过的事情:

目标网页:

<div id="example" class="some classes">

...some content

</div>

导航:

<li id="nav-bprocess" class="stop-click">

     <a class="get-underline" href="/the_page.html#example">To the Jump Target</a>

</li>

0 个答案:

没有答案