如何从子文件夹链接到“父”文件夹? (子文件夹 - > beverages / elixir.html)(父文件夹 - > lounge.html)

时间:2015-10-17 07:13:31

标签: html hyperlink href parent-child parent

<head>
    <title>Head First Lounge</title>
</head>

<body>

    <h1>Welcome to the New and Improved Head First Lounge</h1>

        <img src="images/drinks.gif">

        <p>
            Join us any evening for refreshing <a href="beverage/elixir.html">elixirs</a>, 
            and maybe a game or two of <em>Dance Dance Revolution</em>. Wireless
            access is always provided; BYOWS (Bring your own web server).
        </p>

    <h2>Directions</h2>

        <p> 
            You'll find us right in the center of downtown Webville. If you need help
            finding us, check out our <a href="about/directions.html">detailed directions</a> 
            . Come join us!

        </p>

</body>

尝试链接父母和孩子......我无法确定链接是如何工作的。

2 个答案:

答案 0 :(得分:0)

托管网站时,您可以将文件放入一个文件夹中,然后您就可以将其与te 文件的名称相关联,因此thisisatest.html for示例

答案 1 :(得分:0)

只需使用

../xy

进入父文件夹