如何链接相同或不同文件夹中的HTML页面? [英] How to link html pages in same or different folders?
本文介绍了如何链接相同或不同文件夹中的HTML页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不写完整路径的情况下链接到html页面(如果它们位于相同或不同的文件夹中)
How can I link to html pages if they are in same or different folders without writing full path?
相同的文件夹,只需使用文件名:
Within the same folder, just use the file name:
<a href="thefile.html">my link</a>
在超级目录中:
<a href="../thefile.html">my link</a>
在一个子目录内:
Within a sub-directory:
<a href="subdir/thefile.html">my link</a>
这篇关于如何链接相同或不同文件夹中的HTML页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文