验证CSS 3.0不是已知的属性名称

Max*_*axW 5 css c# asp.net validation visual-studio

我有多个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;

}
Run Code Online (Sandbox Code Playgroud)

希望这足够清楚;)

Max*_*axW 1

添加Web Essentials解决了这个问题。

  • 你是什​​么意思?这个答案对VS新手没有帮助 (3认同)