Eri*_*k V 5 html css stylesheet rel
我正在尝试将我的样式表 (styles.css) 链接到 index.html。当我使用 Chrome 的 Sublime Text 构建功能执行此操作时,HTML 显示正常,但未链接到样式表(文本不是蓝色)。当我将此完全相同的代码(在相同的文件夹结构中)上传到 BitBalloon 时,该链接有效。为什么会这样,我如何使链接在两种情况下都能正常工作?
索引.html:
<!DOCTYPE HTML>
<html>
<head>
<title>I think I'm doing this right!</title>
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
</heaod>
<body>
<div class="jumbotron">
<div class="container">
<h1>CareerFoundry Template</h1>
<p style="background-color: red;">This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more & unique.</p>
<p><a class="btn btn-primary btn-lg" role="button">Learn more »</a></p>
</div>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
样式.css:
body {color:blue;}