【发布时间】:2021-06-11 16:31:51
【问题描述】:
[网站][1] [1]:https://i.stack.imgur.com/CmQRP.png
你好,我想把我的两张卡片放在中间,但我不知道怎么做。
<div>
<div class="card" style="width: 18rem;">
<img class="card-img-top" src="img/v.jpg" alt="Card image cap" style="width: 286px; height: 180px;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
<div>
<div >
<div class="card" style="width: 18rem;">
<img class="card-img-top" src="img/v.jpg" alt="Card image cap" style="width: 286px; height: 180px;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>```
[1]: https://i.stack.imgur.com/CmQRP.png
【问题讨论】:
标签: html css bootstrap-4 twitter-bootstrap-3