位置:首頁 > 軟件操作教程 > 編程開發(fā) > HTML > 問題詳情

HTML 如何表示下級(jí)目錄

提問人:劉團(tuán)圓發(fā)布時(shí)間:2020-10-10

引用下級(jí)目錄的文件,直接寫下級(jí)目錄文件的路徑即可。


假設(shè)info.html路徑是:c:\Inetpub\wwwroot\sites\blabla\info.html

假設(shè)index.html路徑是:c:\Inetpub\wwwroot\sites\blabla\html\index.html

在info.html加入index.html超鏈接的代碼應(yīng)該這樣寫:

<a href = "html/index.html">index.html</a>

假設(shè)info.html路徑是:c:\Inetpub\wwwroot\sites\blabla\info.html

假設(shè)index.html路徑是:c:\Inetpub\wwwroot\sites\blabla\html\tutorials\index.html

在info.html加入index.html超鏈接的代碼應(yīng)該這樣寫:

<a href = "html/tutorials/index.html">index.html</a>

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部