Gra*_*ant 10 html css firefox w3c w3c-validation
由于某种原因,我在所有CSS文件中都收到了这个警告/错误,我无法弄明白.当我通过W3C验证器运行我的CSS时,它出现100%有效格式正确等.但是,当在Firefox中使用Web开发人员工具栏时,我收到此警告:
Warning: Expected ':' but found '/'. Declaration dropped.
Source File: filename.php
Line: 0
有没有其他人遇到这个问题?我知道这不是一个大问题,普通用户永远不会看到这个,但我只是更好奇是什么导致了这一点.
我搜索了谷歌,但无法找到有同样问题的其他人,所以希望有人可以提供帮助.
thi*_*dot 13
看这个页面:
http://cgtweb2.tech.purdue.edu/356/gwindes/project2/
我收到你在Firefox的错误控制台中描述的错误.
原因不在CSS文件中 - 它是你如何包含 CSS文件:
<link href="style.css" style="text/css" rel="stylesheet" />
Run Code Online (Sandbox Code Playgroud)
你能看见它吗?
这是style属性:)
它应该是这样的(style- > type):
<link href="style.css" type="text/css" rel="stylesheet" />
Run Code Online (Sandbox Code Playgroud)