圆角图片.rounded
<div class="container mt-3">
<h2>圆角图片</h2>
<p>.rounded 类可以让图片显示圆角效果:</p>
<img src="http://static.runoob.com/images/mix/cinqueterre.jpg" class="rounded" alt="Cinque Terre" width="304" height="236">
</div>
椭圆图片.round-circle
<img src="http://static.runoob.com/images/mix/cinqueterre.jpg" class="rounded-circle" alt="Cinque Terre">
缩略图.img-thumbnail⭐
<img src="a.jpg" class="img-thumbnail" alt="Cinque Terre" width="304" height="236">
图片对齐方式.folat-start
<div class="container mt-3">
<h2>图片对齐方式</h2>
<p>使用 .float-start 类来设置图片左对齐,使用 .float-end 类设置图片右对齐:</p>
<img src="paris.jpg" class="float-start" alt="Paris" width="304" height="236">
<img src="paris.jpg" class="float-end" alt="Paris" width="304" height="236">
</div>
图片居中.mx-auto d-block
<div class="container mt-3">
<h2>图片居中</h2>
<p>使用 .mx-auto (margin:auto) 和 .d-block (display:block) 类来设置图片居中对齐:</p>
<img src="paris.jpg" class="mx-auto d-block" style="width:50%">
</div>
响应式图片.img-fluid
.img-fluid 类设置了 max-width: 100%; 、 height: auto; :
<div class="container mt-3">
<h2>响应式图片</h2>
<p>.img-fluid 类可以设置响应式图片,重置浏览器大小查看效果:</p>
<img src="http://static.runoob.com/images/mix/paris.jpg" class="img-fluid">
</div>