0
我一直在寻找HTML中绝对和相对链接的完整权威性解释。html中的相对链接
<a href="http://www.example.com/page.html">link page</a>
<a href="//page2.html">link page</a>
<a href="/page3.html">link page</a>
<a href="./page4.html">link page</a>
<a href="../page5.html">link page</a>
所以,
- 是一个绝对链接
- 是相对于网站根与http或https
- 是相对于网站的根?
- 在当前目录中?
- 已上架目录?
为什么downvote?有人可以告诉我什么是不正确的? –
有人正在使用投票按钮。 –