【发布时间】:2023-03-30 16:01:01
【问题描述】:
在引导容器中,我想将图像扩展到一边,但其余部分保持不变。使其更易于解释;这就是我目前拥有的:。在图像的右侧有一个间隙。我想将图像扩展到该间隙(绿线),但将列的中间保持在同一页面上(红线)。图中解释:
但是我在使用容器时遇到了麻烦。我知道我可以使用容器流体,但为了保持布局一致,我想使用容器来解决这个问题。因为当我使用 container-fluid 时,边距会关闭,并且没有像我想要的那样整齐排列。
在此先感谢,如果不弄乱布局,我似乎无法弄清楚。
编辑 1
添加代码是我的错误;赫比我的代码:
<div class="container">
<div class="row">
<section class="col pt-5">
<div>
<h1>Welkom bij</h1>
<h1>XE-Designs</h1>
<p>Easy furniture rental with white glove delivery & assembly. Currently in NYC, SF, LA, Baltimore, Richmond, and the DC Area!</p>
</div>
</section>
<section class="col">
<img class="img-fluid w-100" src="~/images/barn-images-t5YUoHW6zRo-unsplash.jpg" />
</section>
</div>
</div>
【问题讨论】:
标签: html css twitter-bootstrap bootstrap-4