【问题标题】:Bootstrap Carousel cards to be positioned from bottom to top引导轮播卡从下到上定位
【发布时间】:2021-03-18 03:44:23
【问题描述】:

我在水平轮播中使用引导卡,每个卡片都有一个基于复制长度的动态高度,但目前它们显示在轮播的底部,而不是顶部的预期效果。

CodePen example

  <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


    【解决方案1】:

    希望这个答案对你有帮助:)

    .scrollmenu{
        display: inline-flex;
        }
    

    【讨论】:

    • 非常感谢!出于兴趣,有没有办法在不拉伸卡片背景的情况下做到这一点?
    猜你喜欢
    • 2012-11-25
    • 2014-08-22
    • 1970-01-01
    • 1970-01-01
    • 2016-01-31
    • 1970-01-01
    • 1970-01-01
    • 2019-12-21
    • 2015-04-05
    相关资源
    最近更新 更多