本地连接启用连接失败_本地连结

本地连接启用连接失败

For small sites of less than a dozen pages, the easiest way to link an HTML page to another resource is to ensure that files are next to each other, i.e. in the same location. In our example, we will assume that you are trying to link from one page to another: creating a link on page1.html to go to page2.html. In that case you would write:

对于少于十二个页面的小型站点,将HTML页面链接到另一资源的最简单方法是确保文件彼此相邻,即在同一位置。 在我们的示例中,我们假设您尝试从一个页面链接到另一页面:在page1.html上创建链接以转到page2.html 。 在这种情况下,您将编写:

<a href="page2.html">Go to Page 2</a>

Note that nothing else is needed for information - the web browser assumes that page2.html is in the same location as the page it is linked to. If the pages were in

Local link exampledifferent locations we would need to add
path information. You should never write local links in absolute format: if your domain name or site structure changes, the link will cease to work.

请注意,信息不需要任何其他信息page2.html浏览器假定page2.html与链接到的页面位于同一位置。 如果页面在 在不同的位置,我们需要添加路径信息 。 您绝对不应以绝对格式编写本地链接:如果您的域名或站点结构发生更改,则该链接将停止工作。

翻译自: https://thenewcode.com/200/Local-Links

本地连接启用连接失败

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值