这是我的CSS样式表的一部分:
table tr td {
border-width: 1px;
border-style: solid;
border-color: black;
border-collapse: collapse;
overflow: wrap;
background-color: #CCFFFF;
text-align: center;
}
table {
width: 75%;
}
tr {
maximum-width: 200px;
}
tr.RedThreshold {
background-color: red;
}
tr.YellowThreshold {
background-color: yellow !important;
font-weight: bold;
}
它在我的HTML中设置了这个YellowThreshold元素的样式:
vrd70290x127c4.864.546.06最终结果从YellowThreshold中获取粗体,但它没有拾取黄色背景颜色.我只用Color和Background-Color尝试过,但没有变化.有一些优先问题,我没有过去.有什么建议?