Questions tagged «location-href»

6
有相对于​​根的链接吗?
有没有一种方法可以使页面上的所有链接都相对于根目录? 例如,在www.example.com/fruits/apples/apple.html我上面可以有一个链接说: <a href="fruits/index.html">Back to Fruits List</a> 该链接指向www.example.com/fruits/apples/fruits/index.html还是www.example.com/fruits/index.html?如果是第一个,有没有办法让它指向第二个呢?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.