由于某些原因,我写了代码,但它不会刷新。我尝试了很多事情,将其与w3学校的示例html页面进行了比较(当某些更改时确实会更新),试图清除缓存并使用其他浏览器。目前,我不使用服务器,而是先使用前端。
这是代码。
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="home.css">
<title>Vjeran Bach</title>
</head>
<body>
<div class = "content">
<h1>Vjeran Bach Services</h1>
<p>Web and graphic design</p>
</div>
</body>
</html>
谢谢
编辑:问题是原子没有保存任何东西。
答案 0 :(得分:1)
您确定已将更新保存到文件中吗?如果未保存,则浏览器将仅提供以前保存的文件版本。
您可以尝试做的另一件事(假设它是.html文件):在文件系统(Finder /我的电脑)中找到该文件并将其拖到浏览器窗口中,然后您应该会看到更新的版本。