![](/img/trans.png)
[英]How to redirect to another html file in the same directory which is located inside a folder using js?
[英]How to link a CSS file in HTML file which is located in another folder
將其更改為
<link rel="stylesheet" href="../../styles/all.css" type="text/css" />
說明:如果您只從header.ejs
文件返回一個文件夾,則您header.ejs
文件夾views
。 那里沒有存儲styles
文件夾。 所以你需要再返回一個文件夾。
我認為你需要使用
<link rel="stylesheet" href="../../styles/all.css" type="text/css" />
在轉到 /style/all.css 之前轉到 Personal_website 目錄
希望這有幫助:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.