2015-10-17 69 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

鏈接應該是完全獨立的圖像。被破壞,這是否意味着它們被扭曲或者圖像文件被破壞,但是你根本無法查看圖像... –

相關問題