需要从当前页面访问本地页面? [英] Need to acces a local page from current page?
问题描述
我怎么能通过参考链接做到这一点?
how can i do that through the reference link?
<li><a href="..pages/index1.html">Clothing Design</a></li>
推荐答案
您必须知道您网站的目录结构。例如:
You have to know the directory structure of your website. For example:
mainsite (root directory)
|--index.html------subsite1(sub directory)------subsite2(sub directory)
|-page1.html |-page3.html
|-page2.html |-page4.html
1.到链接到index.html的page2.html,在index.html中:
1. To link to page2.html from index.html, in the index.html:
href="subsite1/page2.html"
2.要从page3.html链接到index.html,请在page3.html中:
2. To link to index.html from page3.html, in the page3.html:
href="../index.html"
..意思是向上移动一个目录
3.要从page1.html链接到page4.html,你必须向上移动一个导演为了进入另一个目录,在page1.html:
.. means "move up one directory"
3. To link to page4.html from page1.html, you have to "move up one director in order to get into another directory", in the page1.html:
href="../subsite2/page4.html
4.要链接到同一目录中其他页面的页面,请将page1.html添加到page2.html,在page1.html中:
4. To link to a page from another page in the same directory, say page1.html to page2.html, in the page1.html:
href="page2.html"
结束。
The End.
这篇关于需要从当前页面访问本地页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!