如何解决 GitHub 上的图片不显示问题?

第一步:

首先需要在C:\Windows\System32\drivers\etc目录下,以管理员身份打开hosts文件。

第二步:

编辑 hosts 文件,在文末添加如下配置。

# GitHub Start 
192.30.253.112    github.com 
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

第三步:

配置完成后,保存,然后到 GitHub 上随机选择一个项目,查看图片文件是否能够正常显示即可。

原创文章 167 获赞 244 访问量 12万+

猜你喜欢

转载自blog.csdn.net/jake_tian/article/details/105913097