博客
关于我
解决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.对象集合中的标识.和散列
    查看>>
    Python.硒.拖放错误“AttributeError:move_to 需要 WebElement“
    查看>>
    Python内置函数详解
    查看>>
    Python/Kivy:从一个类调用函数到另一个类并在 Python 中显示小部件
    查看>>
    Python/Kivy:我可以在双击标签时调用函数吗
    查看>>
    python内置函数5-frozenset()
    查看>>
    Python/Plotly:如何使用要显示的信息自定义悬停模板?
    查看>>
    Python/Selenium - 无法单击 www.instagram.com 上的“接受 cookie“按钮
    查看>>
    Python内置函数(35)——next
    查看>>
    python写入mysql
    查看>>
    python写入csv老是乱码或者各种不好
    查看>>
    Python内置函数
    查看>>
    Python2 安装MySQLdb库
    查看>>
    Python2 已终结,入手Python 3,你需要这30个技巧
    查看>>
    python写下拉列表在excel,无法使用python获取Excel下拉列表(组合框)值
    查看>>
    python2.7安装
    查看>>
    Python2.7安装ncmbot时提示:Microsoft Visual C++9.0 is required
    查看>>
    PYTHON2.Git.1
    查看>>
    python20181211
    查看>>
    Python内存管理机制
    查看>>