最佳答案
Bootstrap 3现在有开箱即用的响应表。万岁! :)
您可以在这里查看:https://getbootstrap.com/docs/3.3/css/#tables-responsive
添加 <div class="table-responsive">
围绕着你的 table ,你应该可以开始了:
<div class="table-responsive">
<table class="table">
...
</table>
</div>
要使其适用于所有布局,您可以这样做:
.table-responsive
{
overflow-x: auto;
}
关于html - Twitter Bootstrap 中的响应式表格处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15176714/