【发布时间】:2021-03-18 03:44:23
【问题描述】:
我在水平轮播中使用引导卡,每个卡片都有一个基于复制长度的动态高度,但目前它们显示在轮播的底部,而不是顶部的预期效果。
<div class="scrollmenu">
<div class="card" style="width: 18rem;">
<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. 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" style="width: 18rem;">
<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>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
【问题讨论】:
标签: html css twitter-bootstrap bootstrap-4 sass