Github README.md添加图片

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenbetter1996/article/details/82587093

makedown语法

![图片说明](url)

url有两种情况

1. 使用本项目提高的图片,项目如有放图片的image-foder文件夹

    则url写成: https://github.com/username/repository-name/blob/master/image-foder/1.png   

    [此url可以在打开GitHub位置图片地方复制】

    

    # username 是github用户名, repository-name是仓库名, blob(raw)固定, master是分支,固定

   注意:协议是 https, 不是http, 如果写错,会加载不了调试console报错

   github Refused to load the image '<URL>' because it violates the following Content Security Policy 

  2. 非本项目的外部图片url, 直接复制url下来即可 ,也需要协议头

    

猜你喜欢

转载自blog.csdn.net/chenbetter1996/article/details/82587093