2015-04-03 168 views
0

我有一個簡單的網頁說,index.html與這種錨標籤出現一遍又一遍。
HTML:無法鏈接頁面

<a href="Systems, communication and control laboratory/Amplitude Modulation and Demodulation (Real time experiment)/Amplitude Modulation and Demodulation (Real time experiment) (Introduction).html"> 
    Amplitude Modulation and Demodulation (Real time experiment) 
</a> 
<a href="Speech Signal Processing Laboratory/Non-Stationary Nature of Speech Signal/Non-Stationary Nature of Speech Signal (Aim).html"> 
    Non-Stationary Nature of Speech Signal 
</a> 


我有這樣的目錄結構。

+-- index.html 
+-- Systems, communication and control laboratory 
    +-- BPSK Modulation and Demodulation(Real time experiment) 
     +-- BPSK Modulation and Demodulation(Real time experiment) (Introduction).html 
+-- Speech Signal Processing Laboratory 
    +-- Non-Stationary Nature of Speech Signal 
     +-- Non-Stationary Nature of Speech Signal (Aim).html 

但是當我點擊鏈接時,出現webpage not available錯誤。

我會很感激,如果你能給我一個提示,說明我不服從正確的HTML語法。

回答

3

href屬性中的URL必須進行編碼,因爲它不能包含空格字符。您可以用%20替換空格。

+0

是的,空間造成了問題。感謝您的解決方案! – 2015-04-04 00:06:33

1

您的href屬性中的網址無效。網址中不能有空格。我建議將你的文件重命名爲:this-is-my-new-file-name.html

+0

我換成空間與'混淆%20',它的工作。感謝您指出錯誤。 – 2015-04-04 00:07:53

0

根據您的目錄結構:

- index.html 
+-- Systems, communication and control laboratory 
    +-- BPSK Modulation and Demodulation(Real time experiment) 
     +-- BPSK Modulation and Demodulation(Real time experiment) (Introduction).html 
+-- Speech Signal Processing Laboratory 
    +-- Non-Stationary Nature of Speech Signal 
     +-- Non-Stationary Nature of Speech Signal (Aim).html 

這可能是工作:

<a href="Systems, communication and control laboratory/BPSK Modulation and Demodulation(Real time experiment)/BPSK Modulation and Demodulation(Real time experiment) (Introduction).html"> 
    BPSK Modulation and Demodulation (Real time experiment) 
</a> 
<a href="Speech Signal Processing Laboratory/Non-Stationary Nature of Speech Signal/Non-Stationary Nature of Speech Signal (Aim).html"> 
    Non-Stationary Nature of Speech Signal 
</a> 

有些服務器可能與空間:)