请教个问题
这是html文件:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="mycss.css">
<title>菜鸟教程(runoob.com)</title>
</head>
<body id=newWord>
<h1 id="s2">CSS 实例!</h1>
<p class="s3">这是一个段落。</p>
</body>
</html>
——————————————————————————————
这是css文件
<style type="text/css">
#newWord
{
background-color:yellow;
}
#s2
{
text-align:center;
color:red;
}
.s3
{
text-align:center;
/*这是另一个注释*/
color:yellow;
font-family:arial;
}
</style>
请问为什么背景颜色不变呢?加在body上 id不起作用。