Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bootstrap 4 使用全屏引导4表_Bootstrap 4 - Fatal编程技术网

Bootstrap 4 使用全屏引导4表

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。如果您想要全宽

我试图让我的页面占据整个页面的宽度,按照我客户的要求。我试图做到以下几点。表的左侧距离左侧边缘10px,但表的右侧仍然有大量空白

<div class="container"  style="margin: 10px" >
  <div class="table-responsive">
    <table class="table table-bordered table-sm table-striped">

容器的最大宽度为
1140px
。如果您想要
全宽
表格,请使用
容器流体
而不是
容器


容器
是块元素。它在其父对象的中心与下面的代码对齐

.container{
右边距:自动;
左边距:自动;

}
这将使桌子再次居中,但两边仍有大量空白。谢谢!去容器流体是使它做的正是我想要的。