Jeśli używasz Bootstrap 3 i mniej można zastosować reagujących stoły do wszystkich uchwał przez updatingthe pliku:
tables.less
lub zastąpieniem tej części:
@media (max-width: @screen-xs) {
.table-responsive {
width: 100%;
margin-bottom: 15px;
overflow-y: hidden;
overflow-x: scroll;
border: 1px solid @table-border-color;
// Tighten up spacing and give a background color
> .table {
margin-bottom: 0;
background-color: #fff;
// Ensure the content doesn't wrap
> thead,
> tbody,
> tfoot {
> tr {
> th,
> td {
white-space: nowrap;
}
}
}
}
// Special overrides for the bordered tables
> .table-bordered {
border: 0;
// Nuke the appropriate borders so that the parent can handle them
> thead,
> tbody,
> tfoot {
> tr {
> th:first-child,
> td:first-child {
border-left: 0;
}
> th:last-child,
> td:last-child {
border-right: 0;
}
}
> tr:last-child {
> th,
> td {
border-bottom: 0;
}
}
}
}
}
}
Z:
@media (max-width: @screen-lg) {
.table-responsive {
width: 100%;
...
nocie jak zmieniłem pierwszej linii @ wartość ekran-xx.
Wiem, że sprawienie, że wszystkie tabele będą reagować na polecenia, może nie brzmieć tak dobrze, ale bardzo użyteczne okazało się włączenie tej opcji w LG na dużych tabelach (wiele kolumn).
Mam nadzieję, że komuś pomaga.
Co chcesz zrobić? – cimmanon