解決github中圖片不顯示的問(wèn)題

背景

今天在github上查閱資料,發(fā)現(xiàn)頁(yè)面的圖片不顯示,原以為是原作者項(xiàng)目里圖片上傳除了問(wèn)題,但后來(lái)發(fā)現(xiàn)所有的項(xiàng)目里圖片都顯示不出來(lái)。

效果演示


解決方法

修改本地的hosts文件

打開(kāi)路徑??C:\Windows\System32\drivers\etc\hosts(windows10系統(tǒng)可能為C:\Windows\System32\drivers\etc\HOSTS)


用記事本打開(kāi)hosts文件(打開(kāi)方式選擇“記事本”),在文件末尾添加:

# GitHub Start

192.30.253.112? ? Build software better, together

192.30.253.119? ? ?gist.github.com

151.101.184.133? ? ?assets-cdn.github.com

151.101.184.133? ? ?raw.githubusercontent.com

151.101.184.133? ? ?gist.githubusercontent.com

151.101.184.133? ? ?cloud.githubusercontent.com

151.101.184.133? ? ?camo.githubusercontent.com

151.101.184.133? ? ?avatars0.githubusercontent.com

151.101.184.133? ? ?avatars1.githubusercontent.com

151.101.184.133? ? ?avatars2.githubusercontent.com

151.101.184.133? ? ?avatars3.githubusercontent.com

151.101.184.133? ? avatars4.githubusercontent.com

151.101.184.133? ? ?avatars5.githubusercontent.com

151.101.184.133? ? ?avatars6.githubusercontent.com

151.101.184.133? ? ?avatars7.githubusercontent.com

151.101.184.133? ? ?avatars8.githubusercontent.com

# GitHub End


問(wèn)題完美解決。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容