更改背景和文本颜色

时间:2015-08-12 13:22:18

标签: css

我想让数字1有蓝色背景和红色文本,但这段代码不起作用。我错过了什么?

谢谢!



{
    "size": 0,
    "aggs": {
        "avg_1": {
            "avg": {
                "script": "doc['intVal'][1].value"
            }
        }
    }
}

#testtest
{
background-color: white;
border-width: 1px;
border-style: solid;
border-color: #DDDDDD;	
text-align: center;
line-height:35px;
}


#testtest span.saa
{
color: yellow;

background.color: #F0F0FF;
padding: 8.25px;
margin-left: 5px;
}


#testtest span.sss
{
color: red;

background-color: blue;
padding: 8.25px;
margin-left: 5px;
}




1 个答案:

答案 0 :(得分:3)

span.sss之后你有一个不需要的冒号!尝试:

#testtest span.sss
{
    color: red;

    background: blue;
    padding: 8.25px;
    margin-left: 5px;
}
相关问题