【发布时间】:2020-10-06 17:28:57
【问题描述】:
我正在尝试让我使用 HTML 和 CSS 创建的卡能够与引导程序对齐。它目前只是在该部分的中间,我不知道如何让这些卡片中的 4 个排成一排,然后再让另外 4 个排成一排。
这里是 HTML
<div class="card-container mx-auto mt-5">
<div class="row">
<div class="card card-front">
<img class="card-img-top" src="Assets/aspentree.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of
the
card's content.</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of
the
card's content.</p>
<!--<a href="#" class="btn btn-primary">Go somewhere</a>-->
</div>
</div>
<div class="card card-back">
<div class="card-body bg-warning">
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
【问题讨论】:
-
请同时提供您的 css。
-
这是一个卡片翻转,所以它有正面和背面,背面包含将链接到项目的按钮
标签: html css twitter-bootstrap flip card