<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap 5 实例</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../bootstrap-5.3.0/bootstrap-5.3.0/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>请登录</h1>
<div class="row mt-4" id="form1">
<div class="input-group col-10">
<span class="input-group-text" id="basic-addon1">@</span>
<input type="text" class="form-control" placeholder="用户名" aria-describedby="name">
</div>
<div class="input-group col-10">
<span class="input-group-text" id="password">@</span>
<input type="password" class="form-control" placeholder="密码" aria-describedby="password">
</div>
</div>
<div class="mt-3">
<button class="btn btn-primary">登陆</button>
<button class="btn btn-warning">取消</button>
</div>
</div>
<script src="../bootstrap-5.3.0/bootstrap-5.3.0/js/bootstrap.bundle.min.js"></script>
</body>
</html>
网页设计——第一次上机测试:BootStrap
最新推荐文章于 2024-10-09 09:36:49 发布