-2
当我验证“http://validator.w3.org/check”上的代码时,我得到3个错误,我想不出为什么?这是一个样式表(css)。下面是代码:样式表错误
body { background-color: #ffffcc;
color: #330000;
font-family: Arial, Verdana, sans-serif; }
h1 { background-color: ccaa66;
color: #000000;text-align: center;
line-height: 200%;}
#Nav {text-align: center:}
#footer {background-color: #ccaa66;
color: #000000;
font-size: .60em;
text-align: center;
font-style: italic;}
#wrapper {margin-left: auto;
margin-right: auto;
width: 80%;}
三个错误是:1
行,第1列:字符 “B” 在序言
线11,第3栏不允许:字符 “c” 不在序言允许
第17行,第15列:在序言的文件结尾
这是一个HTML验证器....你想[CSS验证器](http://jigsaw.w3.org/css-validator/#validate_by_input) – sachleen
菜鸟的错误!代码是完美的谢谢 – KKP
+1 @sachleen,也#Nav标签有一个冒号,而不是一个分号后的单词中心。 – Aaron