我试图按照这个问题的问题+答案:Bootstrap4 make card headers the same height,但是我无法让它工作。
我的html代码是这样的:
<div class="card-deck">
<div class="card m-xs-1 m-2" style="">
<div class="card-header" style="">
<div class="card-text text-left" style="">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque volutpat viverra odio pharetra lacinia.
</div>
</div>
<div class="card-body" style="">
<div class="card-text text-left" style="">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque volutpat viverra odio pharetra lacinia. Vestibulum mattis eros velit, hendrerit malesuada est hendrerit eget. Pellentesque urna quam, eleifend ut accumsan vel, feugiat et arcu. Curabitur consectetur tincidunt arcu, id sollicitudin erat egestas non
</div>
<div class="card-text text-left" style="">
<br>
</div>
</div>
<div class="card-footer" style="">
<div class="card-text text-muted text-left" style="">
<small>text</small>
</div>
</div>
</div>
<div class="card m-xs-1 m-2" style="">
<div class="card-header" style="">
<div class="card-text text-left" style="">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque volutpat viverra odio pharetra lacinia. Vestibulum mattis eros velit, hendrerit malesuada est hendrerit eget. Pellentesque urna quam, eleifend ut accumsan vel, feugiat et arcu. Curabitur consectetur tincidunt arcu, id sollicitudin erat egestas non
</div>
</div>
<div class="card-body" style="">
<div class="card-text text-left" style="">
Lorem ipsum dolor sit amet
</div>
<div class="card-text text-left" style="">
<br>
</div>
</div>
<div class="card-footer" style="">
<div class="card-text text-muted text-left" style="">
<small>text2</small>
</div>
</div>
</div>
</div>