CSS 警告:解析“显示”的值时出错。宣言落下。行:0

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3933465/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 22:57:30  来源:igfitidea点击:

Warning: Error in parsing value for 'display'. Declaration dropped. Line: 0

css

提问by lugte098

Warning: Error in parsing value for 'display'. Declaration dropped. Line: 0

警告:解析“显示”的值时出错。宣言落下。行:0

I'm not sure what happens when I leave this warning, because I don't see any strange behaviour in any of my pages.

我不确定当我离开这个警告时会发生什么,因为我在我的任何页面中都没有看到任何奇怪的行为。

Still I want to remove it just in case, can anyone help me try to find a solution? Thnx

我仍然想删除它以防万一,有人可以帮我找到解决方案吗?谢谢

EDIT:

编辑:

I just noticed an error in my php script, which caused my object to have style=display:;Now it's solved, thanks a lot!

我刚刚注意到我的 php 脚本中有一个错误,这导致我的对象出现style=display:;了问题,现在已经解决了,非常感谢!

采纳答案by Kobi

If you don't have too many hacks and overall write neat CSS, try a CSS validator.

如果您没有太多技巧并且总体上编写整洁的 CSS,请尝试使用CSS 验证器