css - 损坏的外部样式表
问题描述
我正在为我在大学的一门课程制作一个假网站。在尝试链接我的外部样式表后,我仍然无法找到如何将它与我的 html 文档正确集成。该链接似乎正确,甚至列在 chrome 的检查元素中,但是没有显示任何样式。
我已经尝试查找所有内容,从我的课本到 youtube 视频,但我没有运气。我不知道导航选项卡或我的一个 div 是否与任何不工作有关。
<!DOCTYPE html>
<html>
<head>
<title> About Us! </title>
<link rel="fusionStyles" type="text/css" href="fusionStyles.css">
</head>
<h1> Food Fusion </h1>
<img src="photos/logo.jpeg.jpeg" alt="logo" />
<nav>
<ul class="header">
<li> <a href="index.html">Home</a> </li>
<li> <a href="breakfast.html">Breakfast</a> </li>
<li> <a href="extras.html">Appetizers and Extras</a> </li>
<li> <a href="lunch.html">Lunch</a> </li>
<li> <a href="dinner.html">Dinner</a> </li>
<li> <a href="aboutus.html">About Us</a> </li>
<li> <a href="locations.html">Locations</a> </li>
<li> <a href="contact.html">Contact Us</a> </li>
<li> <a href="events.html">Events</a> </li>
<li> <a href="order.html">Online Ordering</a> </li>
</ul>
</nav>
</header>
<h1> About Us! </h1>
<body>
<p> Default text. <p>
<img src="photos/generic.jpeg.jpeg" alt="interior" />
<p> More Default text. </p>
</body>
<footer>
<div class="navbar">
<a href="survey.html">Click here to take a quick survey about our
performance! </a>
<a href="employment.html"> Want to join our staff? Click here!</a>
<p> © </p>
</div>
</footer>
</html>
解决方案
- rel的属性
<link />
是“样式表”; - 您应该重命名文件:EX:“logo.jpeg.jpeg”=>“logo.jpeg”
推荐阅读
- python - 在图像回归任务中尝试预测均值和标准差时无法获得好的结果
- asp.net - ASP.NET Core Razer 页面未在客户端服务器上发布错误消息
- python - 链表突变
- ms-access - 在主窗体中绑定文本框以在子窗体中查找查询
- asp.net - gridview 中的位置分页问题
- python - Pandas Dataframe 根据现有数据添加列
- yum - 在本地 mrepo 服务器上运行 yum update 时如何解决“403 禁止”错误
- c# - 刚体 fps 控制器问题
- nestjs - NestJS 复制资产文件
- shell - Shell检查文件中的一个词来做一个语句