【发布时间】:2021-12-23 02:47:19
【问题描述】:
我正在使用引导程序,我希望项目彼此相邻对齐,到目前为止,我已经尝试使用引导程序列,但它似乎不起作用,我的代码可能写错了
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<div class="container">
<div class="row">
<div class="col">
<h6>
We've funded 120,000 charity projects for 20M people around the world.
</h6>
<h6>
Clean Water
</h6>
<i class="fas fa-tint"></i>
<p>
633 million people drink dirty water. With your help we supply clean water which can improve health
</p>
<h6>Healthy food</h6>
<i class="fas fa-seedling"></i>
<p>
With your help we have provided good healthy food to the less fortunate.
</p>
<h6>
Education
</h6>
<i class="fas fa-book"></i>
<p>We have developed schools with the donations received, so children can have access to good education</p>
</div>
</div>
</div>
上图是我希望设计的样子
请帮忙,因为它变得非常令人沮丧。
【问题讨论】:
-
您已将所有内容放在一个列中。您为什么希望看到多个?
标签: html css web bootstrap-4