<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap 实例</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">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container-fluid mt-3">
<h1>堆叠到水平</h1>
<p>请调整浏览器窗口大小来查看效果。</p>
<p>此例演示了在小型、中型、大型和超大型设备上的 75%/25% 拆分。在超小型设备上,它将堆叠(100% 宽度)。</p>
<div class="container-fluid">
<div class="row">
<div class="col-sm-9 bg-success">col-sm-9</div>
<div class="col-sm-3 bg-warning">col-sm-3</div>
</div>
</div>
<br>
<p>此例演示了在小型、中型、大型和超大型设备上的 33% 拆分。在超小型设备上,它将堆叠(100% 宽度)。</p>
<div class="container-fluid">
<div class="row">
<div class="col-sm bg-success">col-sm</div>
<div class="col-sm bg-warning">col-sm</div>
<div class="col-sm bg-success">col-sm</div>
</div>
</div>
</div>
</body>
</html>