【发布时间】:2017-07-22 22:05:58
【问题描述】:
我在尝试将我的 CSS 样式表链接到我的 HTML 文件时已经束手无策了,我们将不胜感激!
- 它们在同一个文件夹中
- 我选择的 ide 是 notepad++(如果有区别的话)
- 每个文件的命名正确
- 我尝试了多种浏览器
我的代码如下:
<!DOCTYPE html>
<html>
<head>
<title>Christian Potts' Virtual Resume</title>
<style>
<link rel = "stylesheet"
type = "text/css"
href = "style.css" />
</style>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
样式表:
/* style.css */
h1 {
color: Blue;
}
【问题讨论】:
标签: html css hyperlink stylesheet