如何在Bootstrap 4中的行中的列之间有更大的间隙?我尝试了所有方法,但它的居中效果不好。需要有居中列的间隙。因为它看起来很糟糕。图像示例:https://i.stack.imgur.com/1Bkkp.png
代码:
<section id="footer">
<div class="container">
<div class="row">
<div class="col-4">
<h1>TEST</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="col-4">
<h1>TEST</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
<div class="col-4">
<h1>TEST</h1>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form,</p>
</div>
</div>
</div>
</section>
2条答案
按热度按时间ss2ws0br1#
我觉得你会喜欢这个...??
k5hmc34c2#
第一个例子:创建一行()。然后,添加所需数量的列(带有适当. col-- 类的标记)。第一个星星(*)表示响应性:sm、md、lg或xl,而第二颗星星代表一个数字,每行的数字之和应该总是12。