首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CSS lint抛出错误

CSS lint抛出错误
EN

Stack Overflow用户
提问于 2017-07-19 17:03:57
回答 1查看 3.2K关注 0票数 1

我正在运行棉线,并得到跟踪错误。

代码语言:javascript
复制
Unexpected vendor-prefix "-webkit-animation" 

Unexpected named color "white" 

下面是我得到错误的css类

代码语言:javascript
复制
.well-classname--progress {
  -webkit-animation: loadbar 1s linear forwards;
  animation: loadbar 1s linear forwards;
  opacity: 0;
  transform: translateX(-100%) translate3d(0, 0, 0);
  // margin-right: 1px;
}

.well-classname--progress:not(:last-child) {
  border-right: 1px solid white;
}

你知道我为什么会犯那些小错误吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-07-20 09:02:06

意想不到的供应商-前缀“-webkit-动画”

这是值-无供应商前缀手写规则。

通过使用自动再固定器,可以避免包括供应商前缀属性。

或者干脆取消这条规则。

意外命名颜色“白色”

这是设置为“从不”的色名规则。

如果您想始终使用指定的颜色,可以将其设置为“总是在可能的情况下”,或者将white替换为#fff (更好)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45196812

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档