开发者

relative link for directory above

开发者 https://www.devze.com 2023-02-03 05:50 出处:网络
I\'ve got a file structure like so Root -index.html -adirectory ->fileinthedirectory.html I\'d like to create a relati开发者_JAVA百科ve link from fileinthedirectory.html to index.html since /in

I've got a file structure like so

Root
-index.html
-adirectory
 ->fileinthedirectory.html

I'd like to create a relati开发者_JAVA百科ve link from fileinthedirectory.html to index.html since /index.html links to /adirectory/index.html which doesn't exist.


To go up one directory you can use:

 ../index.html

or you can start the URL with a slash to start from the root

 /index.html
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号