![](/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.