且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

引导表不会填满容器的宽度

更新时间:2023-02-04 16:51:30

这是因为您没有遵循响应表.您必须将table元素与.table类一起包装在具有.table-responsive类的包装器<div>中,如下所示:

It's because you are not following the Bootstrap documentation indications on responsive tables. You have to wrap your table element with .table class in a wrapper <div> with the .table-responsive class, like this:

<div class="table-responsive">
  <table class="table">
    ...
  </table>
</div>