Html CSS链接在Linux上失败
我在Linux上将css链接到html时遇到问题。我在xampp windows上测试它正在工作,但我将它移到Linux上,它无法链接到我的css、js 我的主任: html:/review/food/index.html ------css:/review/css/app.css 我的代码在xampp windows上工作Html CSS链接在Linux上失败,html,css,linux,Html,Css,Linux,我在Linux上将css链接到html时遇到问题。我在xampp windows上测试它正在工作,但我将它移到Linux上,它无法链接到我的css、js 我的主任: html:/review/food/index.html ------css:/review/css/app.css 我的代码在xampp windows上工作 那么我该如何修复它呢?我不确定,也许您可以尝试先在路由中添加一个/ <link href="./../css/app.css" rel="stylesheet" t
那么我该如何修复它呢?我不确定,也许您可以尝试先在路由中添加一个
/
<link href="./../css/app.css" rel="stylesheet" type="text/css">
css文件需要相对于浏览它的url-而不是物理文件的文件夹结构。使用绝对路径/review/css/app.css
到css可能更容易。您好,我尝试添加您的想法,但它不起作用:(