Github无法显示文章中的图片

解决方法:可以使用HOSTS加速对Github网站加载的资源网站域名解析。

具体做法:

   修改 C:\Windows\System32\drivers\etc 中的hosts文件(PS:若没有修改权限,以管理员身份修改,或者鼠标右键,属性,安全,修改权限。)

 

   接着将下面一段话添加到hosts文件中:

# GitHub Start 
192.30.253.112 github.com 
192.30.253.119 gist.github.com 
151.101.100.133 assets-cdn.github.com 
151.101.100.133 raw.githubusercontent.com 
151.101.100.133 gist.githubusercontent.com 
151.101.100.133 cloud.githubusercontent.com 
151.101.100.133 camo.githubusercontent.com 
151.101.100.133 avatars0.githubusercontent.com 
151.101.100.133 avatars1.githubusercontent.com 
151.101.100.133 avatars2.githubusercontent.com 
151.101.100.133 avatars3.githubusercontent.com 
151.101.100.133 avatars4.githubusercontent.com 
151.101.100.133 avatars5.githubusercontent.com 
151.101.100.133 avatars6.githubusercontent.com 
151.101.100.133 avatars7.githubusercontent.com 
151.101.100.133 avatars8.githubusercontent.com 
# GitHub End

 

   修改结果如下图所示(VScode):

 

 

 

保存修改,然后打开Github,图片正常显示。

 

posted @ 2020-06-01 13:47  Yu_tiann  阅读(505)  评论(0编辑  收藏  举报