【发布时间】:2021-09-23 22:15:08
【问题描述】:
我正在尝试在与我的 HTML 文件相同的目录中导入一个 css 文件:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home Page</title>
<link rel="stylesheet" href="./styles.css">
</head>
我相信我使用 ./ 浏览我的目录是正确的。我也尝试过使用 ../
但是,在我的 chrome 开发工具中,我收到了这个错误:
Failed to load resource: the server responded with a status of 404 (NOT FOUND)
任何帮助将不胜感激。谢谢!
【问题讨论】: