Я добавил !important для переопределения стилей Bootstrap, но это все равно не работает.
У меня есть проверил HTML и убедился, что классы отображаются правильно.
Код: Выделить всё
Trạng thái đơn hàng
/* CSS cho step progress bar */
.order-status-container {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
}
.order-status-step {
text-align: center !important;
position: relative !important;
flex: 1 !important;
}
.order-status-step::before {
content: "";
width: 100%;
height: 6px;
background-color: #e0e0e0 !important;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
}
.order-status-step.active::before {
background-color: #28a745 !important;
}
.order-status-line {
background-color: #e0e0e0 !important;
height: 6px;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
width: 100%;
}
.order-status-step.active + .order-status-step .order-status-line {
background-color: #28a745 !important;
}
.progress-step span {
display: block;
padding-top: 20px;
}
Trạng thái đơn hàng
Chờ xử lý
= 1 ? 'active' : ''}">
Đã xác nhận
= 2 ? 'active' : ''}">
Đang giao hàng
= 3 ? 'active' : ''}">
Đã nhận hàng
....
//library
Подробнее здесь: https://stackoverflow.com/questions/792 ... y-jsp-page