博客
关于我
解决github图片不显示问题_2020/06/25更新
阅读量:212 次
发布时间:2019-02-28

本文共 1527 字,大约阅读时间需要 5 分钟。

 最近在课设,想这参考参考网上开源的项目,结果发现 GitHub上的大部分项目的示例图片一个个都图裂,无法显示。网上搜索有人说原因是域名污染,咱也不知道是什么情况,反正照着下面的解决方法搞定就行。

解决方法:
 打开 C:\Windows\System32\drivers\etc 下的 hosts 文件,直接用记事本打开就行。
在这里插入图片描述
在这里插入图片描述
 搜索GitHub
在这里插入图片描述
 将下列地址复制到hosts文件中,保存在进入GitHub查看图片即可

# GitHub151.101.184.133    assets-cdn.github.com151.101.184.133    raw.githubusercontent.com151.101.184.133    gist.githubusercontent.com151.101.184.133    cloud.githubusercontent.com151.101.184.133    camo.githubusercontent.com151.101.184.133    avatars0.githubusercontent.com199.232.68.133     avatars0.githubusercontent.com199.232.28.133     avatars1.githubusercontent.com151.101.184.133    avatars1.githubusercontent.com151.101.184.133    avatars2.githubusercontent.com199.232.28.133     avatars2.githubusercontent.com151.101.184.133    avatars3.githubusercontent.com199.232.68.133     avatars3.githubusercontent.com151.101.184.133    avatars4.githubusercontent.com199.232.68.133     avatars4.githubusercontent.com151.101.184.133    avatars5.githubusercontent.com199.232.68.133     avatars5.githubusercontent.com151.101.184.133    avatars6.githubusercontent.com199.232.68.133     avatars6.githubusercontent.com151.101.184.133    avatars7.githubusercontent.com199.232.68.133     avatars7.githubusercontent.com151.101.184.133    avatars8.githubusercontent.com199.232.68.133     avatars8.githubusercontent.com # GitHub End

效果图:

在这里插入图片描述

 这个地址是有时效性的,可能过一段时间又不可以了,所以大家可以在网上搜搜有没有最新的地址,进行替换即可。

 另外,复制这些地址可能会引起打不开GitHub的情况,如果打不开就把复制的地址去掉即可,当然这样又不能显示图片了,但是把地址复制到hosts中可以维持GitHub正常运行和显示图片一段短暂的时间,虽然有些麻烦,但确实可行,估计也有可能是网络问题,期待真正的解决方案。
在这里插入图片描述

转载地址:http://imoi.baihongyu.com/

你可能感兴趣的文章
mysql ansi nulls_SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON 什么意思
查看>>
multi swiper bug solution
查看>>
MySQL Binlog 日志监听与 Spring 集成实战
查看>>
MySQL binlog三种模式
查看>>
multi-angle cosine and sines
查看>>
Mysql Can't connect to MySQL server
查看>>
mysql case when 乱码_Mysql CASE WHEN 用法
查看>>
Multicast1
查看>>
mysql client library_MySQL数据库之zabbix3.x安装出现“configure: error: Not found mysqlclient library”的解决办法...
查看>>
MySQL Cluster 7.0.36 发布
查看>>
Multimodal Unsupervised Image-to-Image Translation多通道无监督图像翻译
查看>>
MySQL Cluster与MGR集群实战
查看>>
multipart/form-data与application/octet-stream的区别、application/x-www-form-urlencoded
查看>>
mysql cmake 报错,MySQL云服务器应用及cmake报错解决办法
查看>>
Multiple websites on single instance of IIS
查看>>
mysql CONCAT()函数拼接有NULL
查看>>
multiprocessing.Manager 嵌套共享对象不适用于队列
查看>>
multiprocessing.pool.map 和带有两个参数的函数
查看>>
MYSQL CONCAT函数
查看>>
multiprocessing.Pool:map_async 和 imap 有什么区别?
查看>>