解决github中图片不显示的问题


背景

今天在github上查阅资料,发现页面的图片不显示,原以为是原作者项目里图片上传除了问题,但后来发现所有的项目里图片都显示不出来。

效果演示


解决方法

修改本地的hosts文件
打开路径 C:\Windows\System32\drivers\etc\hosts(windows10系统可能为C:\Windows\System32\drivers\etc\HOSTS)

用记事本打开hosts文件(打开方式选择“记事本”),在文件末尾添加:

# GitHub Start
192.30.253.112    Build software better, together
192.30.253.119     gist.github.com
151.101.184.133     assets-cdn.github.com
151.101.184.133     raw.githubusercontent.com
151.101.184.133     gist.githubusercontent.com
151.101.184.133     cloud.githubusercontent.com
151.101.184.133     camo.githubusercontent.com
151.101.184.133     avatars0.githubusercontent.com
151.101.184.133     avatars1.githubusercontent.com
151.101.184.133     avatars2.githubusercontent.com
151.101.184.133     avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
151.101.184.133     avatars5.githubusercontent.com
151.101.184.133     avatars6.githubusercontent.com
151.101.184.133     avatars7.githubusercontent.com
151.101.184.133     avatars8.githubusercontent.com
# GitHub End


问题完美解决。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM