博客
关于我
解决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/

    你可能感兴趣的文章
    PAT 2-07. 素因子分解(20)
    查看>>
    PAT-1044. Shopping in Mars (25)
    查看>>
    PAT-乙级-1040 有几个PAT
    查看>>
    PAT1093 Count PAT's (25)(逻辑题)
    查看>>
    PATA1038题解(需复习)
    查看>>
    Patching Array
    查看>>
    Path does not chain with any of the trust anchors
    查看>>
    Path形状获取字符串型变量数据
    查看>>
    PAT甲级——1001 A+B Format (20分)
    查看>>
    Skywalking原理
    查看>>
    PAT甲级——1006 Sign In and Sign Out (25分)
    查看>>
    PAT甲级——1007 Maximum Subsequence Sum (25分)
    查看>>
    PAT甲级——1009 Product of Polynomials (25分)(最后一个测试点段错误)
    查看>>
    Spring对jdbc的支持
    查看>>
    PayPal网站付款标准版(for PHP)
    查看>>
    Paystack Android SDK 集成与使用指南
    查看>>
    pbf格式详解,javascript加载导出pbf文件示例
    查看>>
    PBOC2.0与3.0的区别
    查看>>
    PbootCMS entrance.php SQL注入漏洞复现
    查看>>
    PbootCMS 前台RCE漏洞复现
    查看>>