我有我自定義的引導程序網站,我推送github頁面。本地它工作得很好,一點問題都沒有,但就是在網上當風格凌亂而這些信息出現在控制檯上:Github頁面,遠程啓動css:加載資源失敗:服務器響應狀態爲404(未找到)
Failed to load resource: the server responded with a status of 404 (Not Found) https://nickname.github.io/repo/vendor/font-awesome/css/font-awesome.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
在我的代碼
,CSS聲明如下:
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
爲什麼本地工作,而不是遠程?
嘗試改變這樣href =「〜/ vendor/font-awesome/css/font-awesome.min.css」 –