要创建一个自定义后台管理页面,你可以按照以下步骤进行操作:
<!DOCTYPE html>
<html>
<head>
<title>后台管理页面</title>
</head>
<body>
<!-- 这里放置你的页面内容 -->
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>后台管理页面</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/css/bootstrap.min.css">
</head>
<body>
<!-- 这里放置你的页面内容 -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/js/bootstrap.min.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>后台管理页面</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Logo</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">首页</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">用户管理</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">订单管理</a>
</li>
</ul>
</div>
</nav>
<div class="container mt-4">
<h2>用户管理</h2>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>姓名</th>
<th>邮箱</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Alice</td>
<td>alice@example.com</td>
</tr>
<tr>
<td>2</td>
<td>Bob</td>
<td>bob@example.com</td>
</tr>
</tbody>
</table>
<form>
<div class="form-row">
<div class="col">
<input type="text" class="form-control" placeholder="姓名">
</div>
<div class="col">
<input type="email" class="form-control" placeholder="邮箱">
</div>
<div class="col">
<button type="submit" class="btn btn-primary">添加用户</button>
</div>
</div>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/js/bootstrap.min.js"></script>
</body>
</html>
在上面的示例中,我们创建了一个具有导航栏、表格和表单的后台管理页面布局。
希望以上回答对你有所帮助!