Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这可能听起来很蹩脚,但我真的找不到它,也很难解释它,但我会尽力而为。因此,例如,我有一个索引,并且在该索引中有一个导航栏。我想将子文件夹中的 html 文件的路径设置到主文件夹中。
<a href="index3.html">
如果您想将一个文件的路径设置为另一个文件(如果它们位于同一文件夹中),这很容易。但是,如果我想设置从子文件夹到主文件夹的路径,有什么诀窍?
使用“../”表示法导航到父文件夹。例如,如果在子文件夹和页面中有一个指向父 index.html 页面的链接,它看起来像:
<a href="../index.html">