css CSS不同的状态背景颜色

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css CSS不同的状态背景颜色相关的知识,希望对你有一定的参考价值。

.status {
  font-size: 11px;
  font-weight: bold;
  line-height: 14px;
  color: #ffffff;
  vertical-align: baseline;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #999999;
  padding: 1px 4px 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
.status-info {
  background-color: #5bc0de;
}
.status-danger,.status-error {
  background-color: #D2322D;
}
.status-warning {
  background-color: #F0AD4E;
}
.status-success, .status-running {
  background-color: #47A447;
}
.status-inverse {
  background-color: #333333;
}
.status-finish {
  background-color: #428BCA;
}

以上是关于css CSS不同的状态背景颜色的主要内容,如果未能解决你的问题,请参考以下文章

CSS样式和JS样式改变字体颜色背景有啥不同?

神奇的 CSS,让文字智能适配背景颜色

没有图像的元素上的CSS掩码?

CSS表格中第一行和第一列的每个单元格的不同背景颜色

如何在 React 中使用 Tailwind CSS 转换背景颜色?

CSS:仅在边距内的背景颜色