首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HTML:无法链接页面

HTML:无法链接页面
EN

Stack Overflow用户
提问于 2015-04-03 23:11:32
回答 3查看 91关注 0票数 0

我有一个简单的网页,比如index.html,这种锚标签一遍又一遍地出现。

代码语言:javascript
复制
<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>

我有这个目录结构。

代码语言:javascript
复制
+-- 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语法,我将非常感激。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2015-04-03 23:17:33

href属性中的URL必须编码,因为它不能有空格字符。您可以用%20替换空格。

票数 3
EN

Stack Overflow用户

发布于 2015-04-03 23:16:54

href属性中的URL无效。你不能在URL中有空格。我建议将您的文件重命名为:this-is-my-new-file-name.html

票数 1
EN

Stack Overflow用户

发布于 2015-04-03 23:19:40

根据您的目录结构: :

代码语言:javascript
复制
- 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

这可能是工作:

代码语言:javascript
复制
<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>

有些服务器可能与空格混淆:)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29440907

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档