【发布时间】:2019-11-14 19:37:32
【问题描述】:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<div class="row">
<div class="col-sm-3">
<div class="card bg-light mb-3" style="max-width: 18rem;">
<div class="card-header">Logo</div>
<div class="card-body">
<h5 class="card-title">Light 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>
</div>
</div>
</div>
</div>
以上代码显示:
+-----------+
| Logo |
+-----------+
|Content |
+-----------+
但我需要它:
+------+-----------+
|Logo | Content |
+------+-----------+
| Content |
+------------------+
我需要左侧的卡片标题。我正在使用最新版本的 Bootstrap。
【问题讨论】:
-
内容是什么?
card-body或card-title或card-text
标签: css twitter-bootstrap bootstrap-4