rounded-pill
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- 引入 bootstrap.css -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/js/bootstrap.bundle.min.js"></script>
<style>
span {
display: inline-block;
width: 70px;
height: 70px;
margin: 6px;
background-color: #282a36;
}
</style>
</head>
<body>
<span class="rounded-pill" style="width:130px"></span>
</body>
</html>
<!--
圆角胶囊:rounded-pill
注意!
在Bootstrap 5中的圆角胶囊类rounded-pill是用于创建一个带有大圆角的矩形元素,使得元素的边缘看起来更加圆润,类似于一个药丸的形状。
-->