提问人:Esraa Gamal 提问时间:10/7/2023 最后编辑:TylerHEsraa Gamal 更新时间:10/10/2023 访问量:37
如何处理Codespaces内部的文件目录,特别是html页面中的css路径?
How can I handle the directory of files inside Codespaces , Especial css path in html page?
问:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, width=device-width">
<title>Israa's Charity</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div class="header">
<h2>Israa's Charity</h2>
<div class="img"><img alt="kheer" src="/images/img0.jpg"></div>
<ul>
<li><a class="active" href="/"><b>Home</b></a></li>
<li><a href="/category"><b>Category</b></a></li>
<li><a href="/login"><b>Login In</b></a></li>
<li><a href="/register"><b>Register</b></a></li>
</ul>
</div>
<div class="p0">
<p>Volunteering gives people an opportunity to change the lives of those they do and the lives of those around them, as it gives them the satisfaction of playing some roles in someone else’s life,</p>
<p>and helping people who may not be able to help themselves, and it can be said that volunteering is a way to give back to the community in which we live, as well as strengthening important social skills,</p>
<p>and gaining experience in a field that is valuable at the same time. That is, volunteering has many benefits, including that it is a powerful way to gain some references that fit the life path of those who do it,</p>
<p> and volunteer work is for some people to do a number of jobs without getting paid for it, but in return for it they gain experience in very competitive fields such as television .</p>
</div>
<div class="img_p0">
<img src="/images/cover0.jpg" alt="p0">
'当我加载这个html页面时,图像没有出现,似乎只是 小图标代替图像。
以上是html代码的小镜头。
错误是“此页面无法从
URL 加载样式表”。
我得到的只是“(
href=“/css/style.css”)
我有一个名为 charity 的主文件夹。
目录是这样的:
- 慈善
- 模板
- 布局.html
- CSS的
- 样式.css
- 图像
- img0.jpg
- 封面0.jpg
- 模板
拒绝应用“https://glowing-space-barnacle-45wpq76vj69cqgrp-5000.app.github.dev/css/style.css”中的样式,因为其 MIME 类型 (“text/html”) 不是受支持的样式表 MIME 类型,并且启用了严格的 MIME 检查。
答: 暂无答案
评论