一页书

你永远不会过度准备

图片

和链接的区别是前面多一个感叹号!

![图片名](图片链接)

相对路径以及Github中使用图片

不管是在本地还是在github同一个仓库中,如果图片存在,可以使用相对路径

相对路径图片:

![头像图片](./md-img/test.jpg)

github上如果引用其他github仓库中的图片则要注意地址格式:仓库地址/raw/分支名/图片路径https://raw.githubusercontent.com/用户名/仓库名/分支名/图片路径

![其他仓库的图片1](https://github.com/xugaoyi/vue-music/raw/master/src/common/image/default.png)![其他仓库的图片2](https://raw.githubusercontent.com/xugaoyi/image_store/master/blog/md_logo.png)

当然,你也可以像链接那样对图片地址使用变量:

这里链接用 img 作为图片地址变量
然后在文档的结尾或其他位置给变量赋值(图片地址)
![md_logo][img]
[img]: /assets/img/md/md_logo.png

md_logo

图片宽高

如下想设置图片宽高,可以使用 <img> 标签。

<img src="/assets/img/md/md_logo.png" width="50px" height="30px">
0%