Bootstrap 4 使用全屏引导4表
我试图让我的页面占据整个页面的宽度,按照我客户的要求。我试图做到以下几点。表的左侧距离左侧边缘10px,但表的右侧仍然有大量空白Bootstrap 4 使用全屏引导4表,bootstrap-4,Bootstrap 4,我试图让我的页面占据整个页面的宽度,按照我客户的要求。我试图做到以下几点。表的左侧距离左侧边缘10px,但表的右侧仍然有大量空白 <div class="container" style="margin: 10px" > <div class="table-responsive"> <table class="table table-bordered table-sm table-striped"> 容器的最大宽度为1140px。如果您想要全宽
<div class="container" style="margin: 10px" >
<div class="table-responsive">
<table class="table table-bordered table-sm table-striped">
容器的最大宽度为1140px
。如果您想要全宽
表格,请使用容器流体
而不是容器
类
容器
是块元素。它在其父对象的中心与下面的代码对齐
.container{
右边距:自动;
左边距:自动;
}
这将使桌子再次居中,但两边仍有大量空白。谢谢!去容器流体是使它做的正是我想要的。