加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

html – 如何在不编写完整URL的情况下链接到当前域上的页面

发布时间:2020-12-14 16:37:31 所属栏目:资源 来源:网络整理
导读:假设当前的URL是example.com/test/example 我想说我想链接到example.com/test/example/another a href =“/ another”将我链接到example.com/another 如何在不必将完整URL放入标签的情况下链接到example.com/test/example/another? 解决方法 a href="anothe
假设当前的URL是example.com/test/example

我想说我想链接到example.com/test/example/another

< a href =“/ another”>将我链接到example.com/another

如何在不必将完整URL放入标签的情况下链接到example.com/test/example/another?

解决方法

<a href="another">

应该这样做.

编辑:我的坏,它实际上是:

<a href="./another">

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读