简体   繁体   English

CSS 解析错误

[英]CSS Parsing errors

I am using CSS Lint to detect errors and warnings in a specific css.我正在使用CSS Lint来检测特定 css 中的错误和警告。 CSS Lint detects 3 errors: CSS Lint 检测到 3 个错误:

在此处输入图像描述

in below piece of css code:在下面的 css 代码中:

a.btn,
:not(li.menu_icon a.btn),
.k-button.btn,
input[type=submit].btn, 
input[type=button].btn, 
button[type=submit].btn:not(.gridAddBtn), 
button[type=button].btn:not(.gridAddBtn), 
a[name=butonWorkFlow].btn {
    background-image: none;
    min-width: 90px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

...but I do not know how to correct it. ...但我不知道如何纠正它。 I have basic knowledge about css.我对 css 有基本的了解。

CSS Lint is no longer being updated, so does not recognize the updated :not() syntax. CSS Lint 不再更新,因此无法识别更新的:not()语法。 Use an up-to-date linter, such as stylelint , which will pass your CSS.使用最新的 linter,例如stylelint ,它将通过您的 CSS。

:not(selector) is part of CSS3. :not(selector)是 CSS3 的一部分。 Might be you are using lower version.可能是您使用的是较低版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM