Bootstrap 4 垂直对齐文本不会在卡片上居中 [英] Bootstrap 4 vertical align text won't center on card
问题描述
尝试垂直对齐以下卡片中的文本中心:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"><div class="row text-center h-100"><div class="col-md-3 text-center my-auto"><div class="card card-block justify-content-center" style="height: 120px"><div class="card-body">这是卡片正文中的一些文本.