gpt4 book ai didi

twitter-bootstrap - bootstrap 5 alpha 2 卡片组示例未像文档中显示的那样显示

转载 作者:行者123 更新时间:2023-12-04 16:34:34 24 4
gpt4 key购买 nike

我为卡片 table 插入了这个示例,并认为它会像文档中显示的那样显示。但事实并非如此。 https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha2/css/bootstrap.min.css - 我使用的是 Bootstrap 5 alpha 2。卡片布局是否改变了?

它显示为三行而不是 1 行 3 列。我们是否需要插入基于网格的 HTML 来包装卡片组?

<div class="card-deck">
<div class="card">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</div>

最佳答案

使用<div class="card-group">并改为使用网格格式进行编辑。 Bootstrap 5 不支持卡片组。

关于twitter-bootstrap - bootstrap 5 alpha 2 卡片组示例未像文档中显示的那样显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64311368/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com