代码示例:(标识:bs_gs_container)
<!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.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.2/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.2/js/bootstrap.min.js"></script>
</head>
<body>
  
<div class="container">
  <h1>我的第一张 Bootstrap 页面</h1>
  <p>这部分在 .container 类中。</p>
  <p>.container 类提供了响应式固定宽度的容器。</p>
  <p>调整浏览器窗口的大小,可查看容器宽度将在不同断点处发生变化。</p>
</div>

</body>
</html>
运行结果: