【问题标题】:How do I link up into a "parent" folder from the child folder? (child folder ->beverages/elixir.html) (parent folder ->lounge.html)如何从子文件夹链接到“父”文件夹? (子文件夹 ->beverages/elixir.html) (父文件夹 ->lounge.html)
【发布时间】:2015-10-17 07:13:30
【问题描述】:

<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>

试图链接父母和孩子...我不知道链接是如何工作的。

【问题讨论】:

  • 你能在问题中添加更多细节吗?
  • 饮料/或饮料/?
  • 尼莫——它是饮料。
  • Tejus - 我创建了一个 href 来表示追踪到父级的路径(返回休息室)。但是我必须在原始文件夹中创建另一个文件夹来为孩子链接到父母的链接。它有效,但图像已损坏......我该如何解决? :(谢谢。

标签: html hyperlink href parent-child parent


【解决方案1】:

托管网站时,您只需将文件放在一个文件夹中,您就可以将其与 file 的名称链接,因此 thisisatest.html 用于例子。

【讨论】:

  • 我创建了一个 href 来表示追踪到父级的路径(返回休息室)。但是我必须在原始文件夹中创建另一个文件夹来为孩子链接到父母的链接。它有效,但图像已损坏......我该如何解决? :(谢谢。
【解决方案2】:

随便用

../xy

进入父文件夹

【讨论】:

  • 我创建了一个 href 来表示追踪到父级的路径(返回休息室)。但是我必须在原始文件夹中创建另一个文件夹来为孩子链接到父文件夹。它有效,但图像已损坏......我该如何解决? :(谢谢。
  • 链接应该完全独立于图片。因此,如果您的图像损坏,这是否意味着它们被扭曲或图像文件损坏。但是您根本无法查看图像...
猜你喜欢
  • 2021-08-02
  • 1970-01-01
  • 2017-06-07
  • 1970-01-01
  • 1970-01-01
  • 2018-06-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多