x
 
<!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 p-5 my-5 border">
  <h1>我的第一张 Bootstrap 页面</h1>
  <p>这个容器有边框和额外的内边距和外边距。</p>
</div>
<div class="container p-5 my-5 bg-dark text-white">
  <h1>我的第一张 Bootstrap 页面</h1>
  <p>这个容器有深色背景色和白色文本,以及额外的内边距和外边距。</p>
</div>
<div class="container p-5 my-5 bg-primary text-white">
  <h1>我的第一张 Bootstrap 页面</h1>
  <p>这个容器有蓝色背景色和白色文本,以及额外的内边距和外边距。</p>
</div>
</body>
</html>