代码示例:(标识:bs_form)
<!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.bundle.js"></script>
</head>
<body>

<div class="p-4">
  <h2>堆叠的表单</h2>
  <form action="/index/demo/form_current.html">
    <div class="mb-3 mt-3">
      <label for="email">电子邮件:</label>
      <input type="email" class="form-control" id="email" placeholder="请输入电子邮件地址" name="email">
    </div>
    <div class="mb-3">
      <label for="pwd">密码:</label>
      <input type="password" class="form-control" id="pwd" placeholder="请输入密码" name="pswd">
    </div>
    <div class="form-check mb-3">
      <label class="form-check-label">
        <input class="form-check-input" type="checkbox" name="remember">记住我
      </label>
    </div>
    <button type="submit" class="btn btn-primary">提交</button>
  </form>
</div>

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