本帖最后由 Samding 于 2019-11-30 00:36 编辑
想问一下图中框柱的空白是怎么来的,能去掉吗
[HTML] 纯文本查看 复制代码 <!DOCTYPE html>
<html>
<head>
<title>Bootstrap 实例</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" >
<script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
<pre style="display: inline-block;"> </pre>
<div style="display: inline-block;" class="row">
<div style="display: inline-block;">
<p>图片在头部 (card-img-top):</p>
<div style="width:400px">
<img class="card-img-top" src="https://static.runoob.com/images/mix/img_avatar.png" style="width:100%">
<div>
<h4>John Doe</h4>
<p>Some example text some example text. John Doe is an architect and engineer
</p> <a href="#" class="btn btn-primary">See Profile</a>
</div>
</div>
</div>
<pre style="display: inline-block;"> </pre>
<div style="display: inline-block;">
<p>图片在底部(card-img-bottom):</p>
<div style="width:400px">
<div>
<h4>Jane Doe</h4>
<p>Some example text some example text. Jane Doe is an architect and
engineer</p>
<a href="#" class="btn btn-primary">See Profile</a>
</div>
<img class="card-img-bottom" src="https://static.runoob.com/images/mix/img_avatar.png" style="width:100%">
</div>
</div>
</div>
</body>
</html> |