CSS 2.1 errors: not a known property name

前端 未结 5 1531
逝去的感伤
逝去的感伤 2021-02-04 10:39

Here is my code, I got it from an AJAX sample:

body, div, p, h1, h2, h3, h4, ul, li, table
{
    margin:0;
    padding:0;
    border:none;
}

body
{
    backgrou         


        
5条回答
  •  鱼传尺愫
    2021-02-04 10:50

    Validation errors are all fine, because they are using the proper CSS 2.1 Documentation and your trying to validate CSS3 properties in a CSS 2.1 context.

    What you probably want is to build your application bypassing the CSS Errors, no matter what they are, for that you can transform this "errors" into warnings using Visual Studio Options:

    in The Visual Studio menu click on:

    Tools > Options... and drill down Text Editor > CSS > Miscellaneous

    and just make the CSS Errors to be treated as warnings

    enter image description here

    2013 version

    enter image description here

提交回复
热议问题