二、Bootstrap之HTML—table表格案例(人员信息录入)

运行截图:

代码如下:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>人员管理列表</title>
		<link rel="stylesheet" href="../bootstrap/css/bootstrap.css">
	</head>
	<body>
		<div class="container">
			<h3 class="text-center my-3">人员信息表</h3>
			<div class="clearfix mb-2">
				<div class="py-2 float-left">
					<form action="" class="form-inline">
						<div class="dropdown btn-group">
							<button class="btn btn-secondary" type="button">请选择项目</button>
							<button class="btn btn-success dropdown-toggle  dropdown-toggle-split" data-toggle="dropdown" data-offset="-105,0" type="button"></button>
							<div class="dropdown-menu">
								<a href="#" class="dropdown-item">option1</a>
								<a href="#" class="dropdown-item">option2</a>
								<a href="#" class="dropdown-item">option3</a>
							</div>
						</div>
						<div class="form-group ml-2">
							<input type="search" class="form-control">
							<button class="btn btn-info" type="submit">搜索</button>
						</div>
					</form>
				</div>
				<div class="py-2 float-right">
					<div class="ml-auto btn-group">
						<button class="btn btn-primary">add</button>
						<button class="btn btn-info">update</button>
						<button class="btn btn-danger">delete</button>
						<button class="btn btn-success">actior</button>
					</div>
				</div>
			</div>
			<div class="row tbbody">
				<table class="table table-bordered table-hover">
					<thead class="table-success">
						<tr>
							<th class="w-5"><input type="checkbox"></th>
							<th class="w-15">人员ID</th>
							<th class="w-15">名称</th>
							<th class="w-5">性别</th>
							<th class="w-5">年龄</th>
							<th class="w-50">简介</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="w-5"><input type="checkbox" name="" id=""></td>
							<td class="w-15">123455</td>
							<td class="w-15">zs</td>
							<td class="w-5">sex</td>
							<td class="w-5">25</td>
							<td class="w-50">this is a body</td>
						</tr>
						<tr>
							<td class="w-5"><input type="checkbox" name="" id=""></td>
							<td class="w-15">1233242455</td>
							<td class="w-15">zgsees</td>
							<td class="w-5">sex</td>
							<td class="w-5">25</td>
							<td class="w-50">this is a body</td>
						<tr>
							<td class="w-5"><input type="checkbox" name="" id=""></td>
							<td class="w-15">123433355</td>
							<td class="w-15">zdgses</td>
							<td class="w-5">sex</td>
							<td class="w-5">25</td>
							<td class="w-50">this is a body</td>
						</tr>
						<tr>
							<td class="w-5"><input type="checkbox" name="" id=""></td>
							<td class="w-15">1242423455</td>
							<td class="w-15">zdaads</td>
							<td class="w-5">sex</td>
							<td class="w-5">25</td>
							<td class="w-50">this is a body</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</body>
<!--引入js文件-->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
	<!--Bootstrap核心JavaScript文件-->
	<script src="https://cdn.bootcss.com/twitter-bootstrap/4.4.1/js/bootstrap.min.js"></script>
</html>

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值