解決Github頭像不顯示問題

不知道有沒有人和我遇到了同樣的問題,如下:
頭像不顯示
以這張照片爲例,頭像不顯示。
因此,對於Windows系統,我們需要在host文件中加一些域名,類似於代理的原理。
host文件地址如下:

C:\Windows\System32\drivers\etc

進入這個文件夾後找到host文件,然後用文本編輯器增加以下信息即可:

# 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
199.232.28.133 githubusercontent.com
151.101.100.133 githubusercontent.com
199.232.28.133 avatars0.githubusercontent.com
199.232.28.133 avatars1.githubusercontent.com
199.232.28.133 avatars2.githubusercontent.com
199.232.28.133 avatars3.githubusercontent.com
199.232.28.133 avatars4.githubusercontent.com
199.232.28.133 avatars5.githubusercontent.com
199.232.28.133 avatars6.githubusercontent.com
199.232.28.133 avatars7.githubusercontent.com
199.232.28.133 avatars8.githubusercontent.com

其實就是IP,以及對應的網址(網址對應的IP地址 網址)。
然後你的頭像就可以顯示出來了!

Tips:
① IP地址可能隔一段時間會變,利用https://www.ipaddress.com/可以隨時查IP地址。
② 後面的網址如何得到:鼠標右鍵 - 檢查元素 - 將鼠標移動至圖片即可查看域名。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章