doc: update relative and absolute path section
This commit is contained in:
1 parent
0cb09e5249
commit
c1bdf291bf
1 file changed
+3
-4
@@ -209,12 +209,11 @@ HTML的全称是Hyper Text Markup Language(超文本标记语言)
|
||||
## 相对与绝对路径链接
|
||||
- 相对路径:路径相对于链接到路径的文档
|
||||
- 同一目录内的链接文件:" filename.jpg"
|
||||
- ```html
|
||||
```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">
|
||||
```html
|
||||
<img src img /koala with leaf.png" alt="A Koala with a leaf" title="Logo">
|
||||
```
|
||||
Reference in new issue
Block a user