【发布时间】:2016-05-06 17:43:42
【问题描述】:
我刚刚通过 W3C CSS Validator 运行了我的网站 结果一共发出了 3146 条警告。
其中大部分是这样的重新定义警告:
.fa.fa-check Redefinition of color
.fa.fa-check Redefinition of color
.fa.fa-check Redefinition of font-size
.fa.fa-check Redefinition of font-size
.fa.fa-check Redefinition of background-color
.fa.fa-check Redefinition of background-color
.fa.fa-check Redefinition of display
.fa.fa-check Redefinition of display
.fa.fa-check Redefinition of height
.fa.fa-check Redefinition of height
.fa.fa-check Redefinition of line-height
.fa.fa-check Redefinition of line-height
.fa.fa-check Redefinition of width
.fa.fa-check Redefinition of width
.fa.fa-check Redefinition of text-align
.fa.fa-check Redefinition of text-align
这是脚本:
.fa.fa-check
{
color: #81D742;
font-size: 3em;
background-color: #F7F7F7;
border: 2px solid #DCDCDC;
border-radius: 110px;
display: inline-block;
height: 110px;
line-height: 110px;
width: 110px;
text-align:center;
padding: 0px;
}
我不知道要改变什么才能让这些警告消失。
根据我的阅读,重新定义警告通常会出现 当样式表中有重复定义时, 但唯一的问题是我找不到任何重复的定义。
有没有人有任何提示或技巧来解决这个问题?
【问题讨论】:
标签: css warnings w3c-validation redefinition