博客
关于我
解决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化身“安全老中医”:一键搞定工控系统漏洞,从零基础到精通,收藏这篇就够了!
    查看>>
    Python加速运行技巧
    查看>>
    python办公自动化基础遍历文件夹
    查看>>
    python办公自动化基础输出文件和文件夹
    查看>>
    python办公自动化基础搜索文件
    查看>>
    python知识:@classmethod和@staticmethod的异同
    查看>>
    python前端之css
    查看>>
    Python制作进度条,原来有这么多方法
    查看>>
    Python制作简单的学生成绩管理系统
    查看>>
    python制作甘特图的基本知识(附Demo)
    查看>>
    python制作一个简单的服务器,【Python】 做一个简单的 http 服务器
    查看>>
    Python到底能做什么?它的优点在哪?
    查看>>
    python利用pytorch库导出图像分割算子
    查看>>
    python利用pyshark监听网卡来抓包其中pyshark中摸索的一些可用参数
    查看>>
    python利用excel分析过杀漏失
    查看>>
    python判断汉字数目
    查看>>
    python判断文件是空的,如果是空的,就删除
    查看>>
    python判断密码是否正确_python密码判断是否符合要求的方法
    查看>>
    python判断字符串包含中文_Python 判断字符串是否包含中文
    查看>>