分享Bootstrap简单表格、表单、登录页面
作者:朝花夕拾y 时间:2024-04-10 13:50:42
1.表格
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>表格</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet">
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<h1>条纹状表格</h1>
<table class="table table-striped">
<thead>
<tr>
<th>编号</th>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
<th>地址</th>
</tr>
</thead>
<tbody>
<tr>
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
<tr>
<td>1002</td>
<td>悟空</td>
<td>男</td>
<td>2000</td>
<td>水帘洞</td>
</tr> <tr>
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
<tr>
<td>1002</td>
<td>悟空</td>
<td>男</td>
<td>2000</td>
<td>水帘洞</td>
</tr> <tr>
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
</tbody>
</table>
<h1>带边框表格 鼠标悬停 紧缩表格</h1>
<table class="table table-bordered table-hover table-condensed">
<thead>
<tr>
<th>编号</th>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
<th>地址</th>
</tr>
</thead>
<tbody>
<tr>
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
<tr>
<td>1002</td>
<td>悟空</td>
<td>男</td>
<td>2000</td>
<td>水帘洞</td>
</tr> <tr>
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
<tr>
<td>1002</td>
<td>悟空</td>
<td>男</td>
<td>2000</td>
<td>水帘洞</td>
</tr> <tr>
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
</tbody>
</table>
<h1>状态类</h1>
<table class="table ">
<thead>
<tr class="active">
<th>编号</th>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
<th>地址</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
<tr class="info">
<td>1002</td>
<td>悟空</td>
<td>男</td>
<td>2000</td>
<td>水帘洞</td>
</tr>
<tr class="warning">
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
<tr class="danger">
<td>1002</td>
<td>悟空</td>
<td>男</td>
<td>2000</td>
<td>水帘洞</td>
</tr> <tr>
<td>1001</td>
<td>八戒</td>
<td>男</td>
<td>1000</td>
<td>高老庄</td>
</tr>
</tbody>
</table>
</body>
</html>
2.表单
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>表单</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet">
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<input type="text" name="" class=" form-control" placeholder="请输入">
<div class="form-group has-success has-feedback ">
<label class="control-label">姓名:</label>
<input type="text" name="" class=" form-control input-lg " placeholder="input-lg">
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
</div>
<div class="form-group has-success has-feedback ">
<label class="control-label">姓名:</label>
<input type="text" name="" class=" form-control input-sm " placeholder="input-sm">
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
</div>
<hr/>
<h3>文本域</h3>
<textarea class="form-control" rows="5" ></textarea>
<h3>多选和单选框</h3>
多选:<br/>
<div class="checkbox">
<label>
<input type="checkbox" value=""/>
看电影
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value=""/>
看小说
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value=""/>
玩游戏
</label>
</div>
单选:<br/>
<div class="radio">
<label>
<input type="radio" name="sex" value="保密"/>保密
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="sex" value="男"/>男
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="sex" value="女"/>女
</label>
</div>
<br/>
一行显示:<br/>
多选:<br/>
<div class=" checkbox-inline">
<label>
<input type="checkbox" value=""/>
看电影
</label>
</div>
<div class="checkbox-inline">
<label>
<input type="checkbox" value=""/>
看小说
</label>
</div>
<div class="checkbox-inline">
<label>
<input type="checkbox" value=""/>
玩游戏
</label>
</div>
单选:<br/>
<div class="radio-inline">
<label>
<input type="radio" name="sex" value="保密"/>保密
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="sex" value="男"/>男
</label>
</div>
<div class="radio-inline">
<label>
<input type="radio" name="sex" value="女"/>女
</label>
</div>
下拉列表:
<select class="form-control">
<option>请选择</option>
<option>技术部</option>
<option>研发部</option>
<option>后勤部</option>
</select>
</div>
</body>
</html>
登录1
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet">
<script src="js/jQuery-1.9.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="Container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<h1 class="page-header">用户登录</h1>
<form role="form">
<div class="form-group">
<label for="userId">用户名:</label>
<input type="text" class="form-control" placeholder="请输入账号" id="userId" name="userId">
</div>
<div class="form-group">
<label for="password">密 码:</label>
<input type="password" class="form-control" placeholder="请输入密码" id="password" name="password">
</div>
<div class="checkbox">
<label>
<input type="checkbox"/>记住密码
</label>
<br/>
<input type="submit" value="登录" class="btn"/>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet">
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h1 class="page-header">用户登录</h1>
<form class="form-inline" role="form">
<div class="form-group">
<div class="input-group" >
<div class="input-group-addon">@</div>
<input type="text" class="form-control" placeholder="请输入账号" id="userId" name="userId">
</div>
</div>
<div class="form-group">
<label for="password" class="sr-only">密 码:</label>
<input type="password" class="form-control" placeholder="请输入密码" id="password" name="password">
</div>
<div class="checkbox">
<label>
<input type="checkbox"/>记住密码
</label>
<input type="submit" value="登录" class="btn"/>
</div>
</form>
</div>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet">
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class=" container">
<div class="row">
<div class="col-md-6">
<h2>用户登录</h2>
<form class="form-horizontal" role="form">
<div class="form-group has-success ">
<label class="col-md-3 control-label" for="userId">账号:</label>
<div class="col-md-6">
<input type="text" class="form-control" placeholder="请输入账号" id="userId" name="userId">
</div>
<span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>
</div>
<div class="form-group has-error">
<label class="col-md-3 control-label" for="password">密码:</label>
<div class="col-md-6">
<input type="password" class="form-control" placeholder="请输入密码" id="password" name="password">
</div>
</div>
<div class="form-group">
<div class="col-md-4 col-md-offset-3">
<input type="submit" value="登录" class="btn"/>
<input type="reset" value="重置" class="btn"/>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet">
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class=" container">
<div class="row">
<div class="col-md-6">
<h2>用户登录</h2>
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-md-3 control-label" for="userId">账号:</label>
<div class="col-md-6">
<p class=" form-control-static">admin123456</p>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="password">密码:</label>
<div class="col-md-6">
<p class="form-control-static">123456</p>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
总结
以上所述是小编给大家介绍的分享Bootstrap简单表格、表单、登录页面网站的支持!
来源:http://blog.csdn.net/yxm121404121/article/details/76671716
标签:bootstrap,表格,表单,登录页面
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
vue element-ui el-table组件自定义合计(summary-method)的坑
2024-05-05 09:24:19
![](https://img.aspxhome.com/file/2023/9/128899_0s.png)
SQLServer Execpt和not in 性能区别
2012-01-29 17:53:24
Visual Studio Code搭建django项目的方法步骤
2022-11-28 22:04:00
![](https://img.aspxhome.com/file/2023/0/103480_0s.png)
Python match语句的具体使用
2023-07-24 03:10:08
交互设计的方法
2010-08-18 12:32:00
![](https://img.aspxhome.com/file/UploadPic/20108/18/01-52s.jpg)
python 爬虫请求模块requests详解
2022-09-06 01:33:32
![](https://img.aspxhome.com/file/2023/9/131169_0s.png)
Python实现简单求解给定整数的质因数算法示例
2021-05-27 09:23:08
Go语言中的函数详解
2024-04-25 15:04:35
![](https://img.aspxhome.com/file/2023/7/134237_0s.png)
MySQL 数据查重、去重的实现语句
2024-01-25 10:46:34
文案是网站的性格
2009-09-02 13:05:00
![](https://img.aspxhome.com/file/UploadPic/20099/2/01-84s.jpg)
关于图片存储格式的整理(JPEG格式介绍)
2023-04-05 12:25:37
Python 模拟动态产生字母验证码图片功能
2022-02-10 21:03:35
![](https://img.aspxhome.com/file/2023/3/108053_0s.jpg)
如何对PHP程序中的常见漏洞进行攻击(下)
2023-11-16 14:50:19
巧用一条SQL 实现其它进制到十进制转换
2009-01-19 13:16:00
IE7下 filter:Alpha(opacity=xx) 的小问题
2008-12-02 16:24:00
PHP实现用户认证及管理完全源码
2023-11-19 20:26:19
QT连接Oracle数据库并实现登录验证的操作步骤
2024-01-27 13:06:44
![](https://img.aspxhome.com/file/2023/7/86927_0s.png)
Python之维度dim的定义及其理解使用方式
2021-06-10 12:33:04
![](https://img.aspxhome.com/file/2023/6/95386_0s.png)
JavaScript刷新页面的几种方法总结
2024-04-22 12:53:01
Django如何实现RBAC权限管理
2021-05-20 19:14:27
![](https://img.aspxhome.com/file/2023/1/103361_0s.png)