相关疑难解决方法(0)

有相对于​​root的链接?

有没有办法让页面上的所有链接都相对于根目录?

例如,www.example.com/fruits/apples/apple.html我可以有一个链接说:

<a href="fruits/index.html">Back to Fruits List</a>
Run Code Online (Sandbox Code Playgroud)

这个链接是指向www.example.com/fruits/apples/fruits/index.html还是www.example.com/fruits/index.html?如果是第一个,有没有办法让它指向第二个?

html location-href

155
推荐指数
3
解决办法
28万
查看次数

标签 统计

html ×1

location-href ×1