2012-09-28 41 views
1

我想添加一個指向本地html網站的新鏈接到網站上的菜單列表。主網站是在aspx中,但我正在處理html副本。引用的鏈接指向本地機器上的html網站。爲什麼href不能在本地網站上工作?

<li><a href="C:/Users/User/Desktop/Consulting.html"><b>Custom Solutions</b><br /> 
Custom Software Applications and Solutions</a></li> 

如果我用www.google.com替換href,鏈接很好地與谷歌。但它不適用於本地網站。 C:/Users/User/Desktop/Consulting.html是從aspx網站下載的網站。

由於被拒絕的權限或本地網站來自aspx網站,href是否無效?

回答

2

這應該是

<a href="file:///C:/Users/User/Desktop/Consulting.html"></a> 

,如果您正在查看HTML文件是你的本地計算機上的用戶才能使用。

+0

我改變了HREF,它仍然沒有工作。我點擊鏈接並沒有任何反應。這就像它忽略了我的點擊命令。 –

1

嘗試:

<li><a href="file:///C:/Users/User/Desktop/Consulting.html"><b>Custom Solutions</b><br /> 
Custom Software Applications and Solutions</a></li> 
相關問題