这是我的CSS代码。 W3C CSS验证器说出上述错误。
请提供建议
span.selected {
width:70px;
text-indent:10px;
border-top-left-radius:5px;
border-bottom-left-radius:5px;
background:#7a7a7a;
overflow:hidden;
font-family: Tahoma;
font-size: 1.1em;
font-weight: bold;
text-align: center;
}
答案 0 :(得分:1)
我已经使用http://jigsaw.w3.org/css-validator/validator进行了人工检查 - 这回复了
恭喜!没有发现错误。
请尝试使用background-color
。
请参阅此SO问题:What is the difference between background and background-color
答案 1 :(得分:-1)
如果您只想设置颜色,请改用Background-color;
background-color: #7a7a7a;
答案 2 :(得分:-1)
我认为如果您将background
更改为background-color
,则错误/警告将会消失。
span.selected {
...
background-color:#7a7a7a;
...
}