我有一个名为style.css的样式表,它位于一个名为 css 的文件夹中
以及名为 html 的文件夹中的名为template.html的 HTML 文件
这两个文件夹都在一个名为 WebSite 的文件夹中(我猜那是根文件夹。我是 html 新手)
我想使用相对路径将 style.css 链接到 template.html。
我的文件夹结构:
WebSite
|
|--css
|
|--style.css
|
|--html
|
|--template.html
|
|--index.html
我尝试使用
<link rel="stylesheet" href="../css/style.css" type="text/css" media="all" />
它没有用
为了更清楚,我尝试使用 view-source: 在 url 之前并单击链接,但它显示
storage/emulated/0/WebSite/html/css/style.css (No such file or directory)
我在 Android 手机上使用 Acode 免费应用程序。