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

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

解决 GitHub图片无法显示的问题

在课设参考开源项目时,发现GitHub上的示例图片普遍图裂?以下是针对该问题的详细解决方法:

解决方法:

  • 定位hosts文件:

    • 打开 C:\Windows\System32\drivers\etc 文件夹。
    • 找到并用记事本打开 hosts 文件。记得保存为文本文件以免修改原文件。
  • 复制指定地址:

    • 将以下地址逐一复制到hosts文件中,按换行符分隔:
      # 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.com199.232.68.133     avatars0.githubusercontent.com199.232.28.133     avatars0.githubusercontent.com151.101.184.133    avatars1.githubusercontent.com199.232.68.133     avatars1.githubusercontent.com199.232.28.133     avatars2.githubusercontent.com151.101.184.133    avatars2.githubusercontent.com199.232.68.133     avatars3.githubusercontent.com151.101.184.133    avatars3.githubusercontent.com199.232.68.133     avatars4.githubusercontent.com151.101.184.133    avatars4.githubusercontent.com199.232.68.133     avatars5.githubusercontent.com151.101.184.133    avatars5.githubusercontent.com199.232.68.133     avatars6.githubusercontent.com151.101.184.133    avatars6.githubusercontent.com199.232.68.133     avatars7.githubusercontent.com151.101.184.133    avatars7.githubusercontent.com199.232.68.133     avatars8.githubusercontent.com151.101.184.133    avatars8.githubusercontent.com
    • 保存后,进入GitHub查看图片是否正常加载。
  • 注意事项:

    • 这些地址可能有时效性,建议定期检查并更新。
    • 复制过多地址可能导致网络问题,若遇到无法访问GitHub,建议逐步移除部分地址。
  • 测试效果

    • 保存修改后的hosts文件后,重新进入GitHub查看项目页面。
    • 检查图片是否正常加载,若仍有问题,可能需要寻找最新的hosts地址或其他解决方案。

    通过以上方法,希望能够解决GitHub图片加载问题,顺利完成课设参考工作。

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

    你可能感兴趣的文章
    Python基础之面向对象2(封装)
    查看>>
    Python基础之给函数增加元信息
    查看>>
    python基础之字符编码
    查看>>
    python基础之多线程与多进程(二)
    查看>>
    Python基础之基本数据类型一《数字与字符串》
    查看>>
    python基础之变量---总纲
    查看>>
    Python基础之列表
    查看>>
    Python基础之Python环境搭建
    查看>>
    python基础之--面相对象--OOP基本特性
    查看>>
    python基础之--迭代器和生成器及异常处理
    查看>>
    python基础之--包和模块
    查看>>
    python基础之---面向对象--属性和方法
    查看>>
    python基础之---运算符
    查看>>
    python基础之---语句
    查看>>
    python基础之---正则表达式
    查看>>
    python基础之---函数式编程
    查看>>
    python基础之---函数
    查看>>
    Python基础之(一)基本数据类型
    查看>>
    Python基础【os】
    查看>>
    Python基础——面向对象
    查看>>