abeen

当网页内容太长或要导航到其它页面的一个具体位置时,可以使用  Html 中书签。

1.       同一个web页面链接

首先设计书签

<name=”top”></a>

  

在不同位置定义

<href=”#top”>返回到top位置</a>


2.       不同的页面之间转接

如果是在不同的页面之间链接时要在href属性中加上网页名称。

First.html中定义了书签

<name=”top”>Top的位置</a>


现在要从Second.html中转入First.html并且将位置定到top所在的位置

可以设置

<href=”first.html#top”>return first Top</a>

分类:

技术点:

相关文章:

  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-09-02
  • 2021-04-01
  • 2021-04-23
猜你喜欢
  • 2021-07-01
  • 2021-11-19
  • 2022-01-29
  • 2022-12-23
  • 2021-10-12
  • 2021-08-09
  • 2021-05-25
相关资源
相似解决方案