Chinaunix首页 | 论坛 | 博客
  • 博客访问: 426717
  • 博文数量: 121
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1101
  • 用 户 组: 普通用户
  • 注册时间: 2014-03-20 19:29
个人简介

http://meetbill.github.io/

文章分类

全部博文(121)

我的朋友

分类: LINUX

2016-04-15 17:26:22

简要:

    将图片放在仓库里面,在文件里链接它,最后 push 到 github 上。

github 图片链接格式:

(http://github.com/yourname/your-repository/raw/master/images-folder/xxx.png)

要自己设定的:yourname, your-repository, your-folder, xxx.png。

    yourname            --- 你的帐号
    your-respository --- 你的 project 名
    images-folder      --- 你存放图片的文件夹,如果是直接放在 project 的项目根目录的話,就可以省略這個
    xxx.png                --- 你的图片名

然后在 README.md 里添加:

例如:
我的图片的地址真实路径:https://github.com/meetbill/python_learn/4_pytable/images/demo.png
我从网页上点击打开图片的路径:https://github.com/meetbill/python_learn/blob/master/4_pytable/images/demo.png
那么添加链接的方式如下

 ![image](https://github.com/meetbill/python_learn/raw/master/4_pytable/images/demo.png)
将点击打开图片的路径中的blob修改为raw即可,简单吧
阅读(2028) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~