2015-10-17 70 views
0

如何链接到子文件夹中的“父”文件夹? (子文件夹 - >饮料/ elixir.html)(父文件夹 - > lounge.html)

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

试图将父母和孩子联系起来...我想不出如何链接起作用。

+0

ü可以添加更多详情的问题? –

+0

饮料/或饮料/? – Nemo

+0

尼莫 - 它是饮料。 – tri

回答

0

托管的网站,你可以只把文件放到一个文件夹,你可以把它用TE 文件所以thisisatest.html例如只是名字联系起来。

+0

我创建一个href代表的路径,追踪到父(Back to the Lounge),但我不得不在原来的文件夹中创建另一个文件夹做链接,为孩子链接到父,它的工作,但图像被破坏......我该如何解决呢?:(谢谢。 – tri

0

只需使用

../xy 

进入父文件夹

+0

我创建一个href代表的路径,追踪到父(Back to the Lounge),但我不得不在原来的文件夹中创建另一个文件夹为孩子链接到父母的链接,它的工作,但图像被打破...我该如何解决这个问题:(谢谢 – tri

+0

链接应该是完全独立的图像。被破坏,这是否意味着它们被扭曲或者图像文件被破坏,但是你根本无法查看图像... –

相关问题