这是不好的做法吗?这是很好的链接练习吗?
的文件夹结构(每个HTML页都有名的index.html位于子文件夹):
root-folder (index.html)
subpage1 (index.html)
subpage2 (index.html)
subpage3 (index.html)
的index.html的根文件夹中会有menulinks像这样:
<a href="/">index</a>
<a href="/subpage1">subpage1</a>
<a href="/subpage2">subpage2</a>
<a href="/subpage3">subpage3</a>
在子文件夹/子页面中的所有其他index.html文件将有这样的menulinks:
<a href="../">index</a>
<a href="../subpage1">subpage1</a>
<a href="../subpage2">subpage2</a>
<a href="../subpage3">subpage3</a>
链接到css,javascript,favoicon也会有这个链接结构。
我认为最简洁的方法是在每一页上都有这样的链接。但它的并发,如果你想尝试一下页面中的子文件夹的工作......
<a href="/">index</a>
<a href="/subpage1">subpage1</a>
<a href="/subpage2">subpage2</a>
<a href="/subpage3">subpage3</a>
想法:我会去用“最干净的方式”。如果我需要测试/显示网站,我可以使用子域:) – Hakan 2012-02-10 00:48:00