3版佈局(https://plnkr.co/edit/XDA9EwMAzH4xDSfZaXvS?p=preview)Boostrap 4間距,爲什麼按鈕不像第3版那樣有垂直空間?
<div class="container">
<h1>Confirm your details</h1>
<div class="row">
<div class="col-md-12">
<div class="panel">
<h4 class="panel-heading">We need to confirm your current address details and contact information.</h4>
<p class="panel-body">With supporting text below as a natural lead-in to additional content.</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
<p>
<a href="#" class="btn btn-primary">Confirm</a>
</p>
</div>
</div>
</div>
4版佈局(https://plnkr.co/edit/LDy00Kk6eVHDq85ZqjgQ?p=preview)
<div class="container">
<h1>Confirm your details</h1>
<div class="row">
<div class="col">
<div class="card">
<div class="card-block">
<h4 class="card-title">We need to confirm your current address details and contact information.</h4>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
<p>
<a href="#" class="btn btn-primary">Confirm</a>
</p>
</div>
</div>
</div>
爲什麼按鈕沒有垂直空間,我應該如何將它添加到Bootstrap v4中?
我已經閱讀文檔,但無法找到這個明確原因更改。調整$ spacer並沒有改變任何東西。 – Zymotik