0

HTML-代码:

<!DOCTYPE html>

<html lang="no">

</head>
    <title>Thomas</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="style.css" type="text/css" />

</head>

<body>

<h4>A major headline</h4>
<p> Some text

CSS:

body {
    font-family: monospace;
}

由于某些奇怪的原因,当我尝试加载此页面时,我的 css 属性不会显示。html 文件保存为 thomas.html,而 css 文件保存在与 thomas.html 相同的文件夹中的 style.css

为什么它不起作用?:(

4

2 回答 2

2

你已经关闭了<head>标签两次而不是第一次应该是这个 <head>,我只是一个错字错误我想你很清楚它是对的

于 2013-09-16T10:20:49.780 回答
1

你在做</head></head>..那应该是<head></head>

于 2013-09-16T10:19:58.703 回答