Twitter bootstrap 如何使引导卡具有相同的高度?

Twitter bootstrap 如何使引导卡具有相同的高度?,twitter-bootstrap,bootstrap-4,mdbootstrap,Twitter Bootstrap,Bootstrap 4,Mdbootstrap,如何使引导卡具有相同的高度? 我知道有h-100我可以用,但在我的情况下,这是一个很大的-我需要像h-50的东西,但这不起作用。 我也试过h-25,它也不起作用 在如何制作相同高度的卡片上还有其他技巧吗?这是精确高度卡片的工作示例 检查一下,如果对你有帮助,请告诉我 <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8">

如何使引导卡具有相同的高度? 我知道有h-100我可以用,但在我的情况下,这是一个很大的-我需要像h-50的东西,但这不起作用。 我也试过h-25,它也不起作用


在如何制作相同高度的卡片上还有其他技巧吗?

这是精确高度卡片的工作示例 检查一下,如果对你有帮助,请告诉我

<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>

</head>
<body>
  <div class="container">
    <div class="row mt-5">
        <div class="col-3">
          <div class="card h-100">
            <img src="https://via.placeholder.com/300" class="img-fluid">
            <p> This is card 1</p>
            <p>With more text and description</p>
            <p>blah blah blah</p>
          </div>
        </div>
        <div class="col-3">
          <div class="card h-100">
            <img src="https://via.placeholder.com/300" class="img-fluid">
            <p>This is card 2</p>
            <p>with less text</p>
          </div>
        </div>

        <div class="col-3">
          <div class="card h-100">
            <img src="https://via.placeholder.com/300" class="img-fluid">
            <p>This is card 3</p>
          </div>
        </div>

        <div class="col-3">
          <div class="card h-100">
            <img src="https://via.placeholder.com/300" class="img-fluid">
            <p>All with equal heights</p>
          </div>
        </div>
    </div>
  </div>
</body>
</html>

引导示例
这是第一张卡

有更多的文字和描述

废话废话

这是卡2

用更少的文字

这是第三张卡

高度相等


我知道它可以与h-100配合使用,但h-100太大了-我知道我也可以使用h-75 h-50和h-25,但由于某些原因,它不是working@redbulll兄弟,如果你要使用row,那么只有它会起作用:)问题是我使用旋转木马-你可以在这里查看我的网站:oval-babies.surge.sh-顶部的旋转木马用于广告,我想要它只有现在的一半大