È possibile ignorare le regole predefinite css con questo:
.table tbody tr > td.success {
background-color: #dff0d8 !important;
}
.table tbody tr > td.error {
background-color: #f2dede !important;
}
.table tbody tr > td.warning {
background-color: #fcf8e3 !important;
}
.table tbody tr > td.info {
background-color: #d9edf7 !important;
}
.table-hover tbody tr:hover > td.success {
background-color: #d0e9c6 !important;
}
.table-hover tbody tr:hover > td.error {
background-color: #ebcccc !important;
}
.table-hover tbody tr:hover > td.warning {
background-color: #faf2cc !important;
}
.table-hover tbody tr:hover > td.info {
background-color: #c4e3f3 !important;
}
!important
è necessario come bootstrap in realtà colora le cellule singolarmente (per quanto ne so non è possibile applicare solo background-color ad un tr). Non sono riuscito a trovare alcuna variabile di colore nella mia versione di bootstrap, ma questa è comunque l'idea di base.
Ti piacerebbe la colorazione per cella? – mathieugagne
@mathieugagne Sì. – Mahoni