2天前,我做了一個簡單的網站,由於某種原因,它不加載任何資源,如圖像,CSS和視頻。HTML/CSS網站不加載任何資源
這裏是我的代碼:
<html lang="en" class="fa-events-icons-ready">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Raut</title>
<link rel="shortcut icon" href="//static/misc/favicon.ico">
<link rel="stylesheet" href="//static/misc/styles.css">
<link rel="stylesheet" href="//static/misc/btn.css">
</head>
<body>
<video id="byiwmemes" autoplay="autoplay" loop="loop">
<source src="//static/top21.mp4" type="video/mp4">
</video>
<h1><img src="//static/misc/logo.png" class="logostyle"></h1>
<div id="buttons">
<a href="//facebook.com/rautw" class="btn blue">Facebook</a>
<a href="//steamcommunity.com/id/raut__/" class="btn orange">Steam</a>
</div>
</body>
</html>
Here's what displays in the console
嘗試保持刷新按鈕並單擊清除緩存並刷新 – Nicolas
在href和所有加載外部資源的位置使用絕對路徑。 –
如果你在Chrome上,你將需要開發工具來做上面提到的硬刷新 – Brad