Questions tagged «bootstrap-cards»

16
如何使Bootstrap 4卡的卡柱高度相同?
我正在使用Bootstrap 4 alpha 2并利用卡上的优势。具体来说,我正在使用从官方文档中获取的此示例。如何使所有卡的高度相同? 我现在所能想到的就是设置以下CSS规则: .card { min-height: 200px; } 但这只是一个硬编码的解决方案,在一般情况下不起作用。我认为代码与文档中的代码相同,即: <div class="card-columns"> <div class="card"> <img class="card-img-top" data-src="..." alt="Card image cap"> <div class="card-block"> <h4 class="card-title">Card title that wraps to a new line</h4> <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.