分享Bootstrap简单表格、表单、登录页面
时间:2019-03-31
本文章向大家介绍分享Bootstrap简单表格、表单、登录页面,主要包括分享Bootstrap简单表格、表单、登录页面使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
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简单表格、表单、登录页面,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
- HTML 教程
- HTML 简介
- html div 标签介绍
- html span 标签介绍
- html a 超链接标签
- HTML Br换行标签介绍
- HTML P段落标签介绍
- HTML br与p标签区别
- Html H 标题标签
- html px em pt长度单位
- HTML form 标签
- HTML radio 单选框
- HTML B 加粗标签
- HTML strong加粗粗体标签
- HTML em 强调标签
- HTML i 斜体标签
- HTML u下划线标签
- HTML s 删除线标签
- Html img 图片标签
- Html上标注sup与下标注sub标签
- HTML nobr 禁止换行标签
- HTML hr 水平线标签
- HTML label 标签
- HTML input 标签
- HTML textarea 标签
- HTML select下拉列表标签
- HTML checkbox 多选框
- HTML font color 标签
- HTML iframe 框架标签
- HTML Table 表格
- HTML dl dt dd 标签
- HTML ol li有序列表标签
- HTML ul li 无序列表标签
- HTML 注释
- CSS 教程
- CSS 简介
- CSS 语法
- CSS Id 和 Class选择器
- CSS 样式的创建
- CSS background 背景介绍
- CSS 文本样式
- CSS font 字体
- CSS A 链接
- CSS ul ol列表样式
- CSS TABLE 样式
- CSS 框模型
- CSS border 边框
- CSS Outlines 轮廓
- CSS 外边距 Margin
- CSS Padding 内边距
- CSS 分组和嵌套选择器
- CSS 尺寸 (Dimension)
- CSS Display 属性
- CSS Position 定位
- CSS Float 浮动
- CSS 水平对齐(Horizontal Align)
- CSS 组合选择符
- CSS 伪类
- CSS 伪元素
- CSS 导航栏
- CSS 下拉菜单
- CSS 图片廊
- CSS 图像透明/不透明
- CSS sprite 图像拼合技术
- CSS 媒体类型
- CSS 属性选择器
- CSS 实例
- lazy-mock ,一个生成后端模拟数据的懒人工具
- Python拉链法和开地址法实现字典
- Springboot2 整合redis发布订阅 解决订阅多个频道重复代码过多 创建很多bean问题
- 爬虫选择器算法漫谈
- Java 类加载机制及双亲委派模型
- Python函数
- Effective C++条款3 我可以不使用const?
- t想成为微信斗图之王么?你需要这款开源工具的力量!
- 蛋糕被切成了几块
- 偿还技术债(1)-EventBus源码详解
- 两万六千字带你Kotlin入门
- 从源码看 Jetpack(7)-SavedStateHandle源码详解
- 从源码看 Jetpack(6)-ViewModel源码详解
- linux配置c++11编译环境
- Java 多线程编程(聊聊线程池)