doc: update Relative and Absolute path

This commit is contained in:
Leon Xu committed 2021-07-29 14:02:16 -07:00
1 parent 1b690844ad
commit 0cb09e5249
1 file changed
+14 -1
+14 -1
View File
@@ -204,4 +204,17 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
<p>
Search for it on <a href="http://www.google.com">Google</a>
</p>
```
```
## 相对与绝对路径链接
- 相对路径:路径相对于链接到路径的文档
- 同一目录内的链接文件:" filename.jpg"
- ```html
<a href ="my other page.html">Check out my other page!</a>
```
- 在子目录中的链接文件(例如"img") "img/filename"
- ```html
<img src img /koala with leaf.png" alt="A Koala with a leaf"
title="Logo">
```