This commit is contained in:
qianguyihao 2021-12-07 17:32:28 +08:00
parent 5838284b5a
commit d45e183d49
1 changed files with 2 additions and 2 deletions

View File

@ -42,10 +42,10 @@ HTML页面不是直接插入图片而是插入图片的引用地址所以
```html
<!-- 当前目录中的图片 -->
<img src="2.jpg">
<img src=".\2.jpg">
<img src="./2.jpg">
<!-- 上一级目录中的图片 -->
<img src="..\2.jpg">
<img src="../2.jpg">
```
相对路径不会出现这种情况