【发布时间】:2015-12-21 18:53:26
【问题描述】:
我有多个 CSS 页面,每个 CSS 属性都会收到以下警告:
验证(CSS 3.0):“
[]”不是已知的属性名称。
我可以运行我的代码,这不是问题,因为它只是一个警告。
如果我的代码询问可以使用哪些属性?我已经搜索了 2 天并重新安装了我的 VS2015,这不会打扰我。我的同事在同一个节目中没有这个问题。
有什么可能出错的建议吗?
一点代码(所有内容都带有绿色下划线):
html, body {
padding: 0;
margin: 0;
background-color: #CCC;
overflow: hidden;
}
.wrapper {
position: fixed;
background-color: #CCC;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 0;
left: 0px !important;
top: 0px !important;
margin-bottom: 0px;
}
.menu {
position: fixed;
background-color: #333;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 320px;
height:100%;
padding: 0;
left: 0px !important;
top: 0px !important;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
align-items: flex-start;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
希望这足够清楚;)
【问题讨论】:
-
你能显示设置属性的任何代码吗?
-
希望这就是你想要的
-
它在哪一行显示验证错误?
-
每个css文件中的每一行,全部,不是一行
标签: c# css asp.net visual-studio validation