bootstrap的表单form
(1)默认表单
<form>
<div class="form-group">
<label class="control-label" for=""></label>
<input class="form-control">
<span class="help-block"></span>
</div>
</form>
<h1>默认表单</h1>
<form action="#">
<div class="form-group">
<label for="uname" class="control-label">用户名</label>
<input type="text" id="uname" class="form-control">
<span class="help-block">字母下划线3-8位</span>
</div>
<div class="form-group">
<label for="upwd" class="control-label">密码</label>
<input type="password" id="upwd" class="form-control">
<span class="help-block">密码为6-8位</span>
</div>
<div class="form-group">
<div class="checkbox">
<label><input type="checkbox">七天免密登陆</label>
</div>
</div>
<div class="form-group">
<input type="button" id="login" value="登录" class="btn btn-success">
<input type="button" id="logout" value="取消" class="btn btn-danger">
</div>
</form>

(2)行内表单
<form class="form-inline">
<div class="form-group">
<label class="sr-only"></label>
<input class="form-control">
</div>
</form>
<h1>行内表单</h1>
<h3> Screen Reader Only sr-only</h3>
<form action="#" class="form-inline">
<div class="form-group">
<label for="uname1" class="sr-only"> 用户名</label>
<input class="form-control" type="text" placeholder="请输入用户名" id="uname1">
</div>
<div class="form-group">
<lable for="upwd1" class="sr-only">密码</lable>
<input class="form-control" type="password" placeholder="请输入密码" id="upwd1">
</div>
<div class="form-group"><input type="button" value="登陆" class="btn btn-success"></div>
</form>

(3)水平表单
水平表单=表单+栅格系统(变种)

<form class=" form-horizontal ">
<div class="form-group">
<div class="col-*-*">
<label class="sr-only"></label>
</div>
<div class="col-*-*">
<input class="form-control">
</div>
</div>
</form>
<h1>形式3:水平表单</h1>
<p>水平表单=表单+栅格系统</p>
<form action="#" class="form-horizontal"> <!--等价于div.container-->
<div class="form-group"><!--div.row-->
<div class="col-sm-1"><label for="uname3" class="control-label">用户名</label></div>
<div class="col-sm-3"> <input type="text" class="form-control" id="uname3"></div>
<div class="col-sm-5"> <span class="help-block">字母数字,,,,,</span></div>
</div>
<div class="form-group"><!--div.row-->
<div class="col-sm-1"><label for="upwd2" class="control-label">密码</label></div>
<div class="col-sm-3"> <input type="text" class="form-control" id="upwd2"></div>
<div class="col-sm-5"> <span class="help-block">密码位数,,,,,</span></div>
</div>
<div class="form-group"><!--div.row-->
<div class="col-sm-1"> <input type="button" class="btn btn-success" value="登陆"></div>
<div class="col-sm-1"> <input type="button" class="btn btn-danger" value="取消"></div>
</div>

bootstrap的表单form的更多相关文章
- bootstrap+font-awesome表单
bootstrap+font-awesome表单 <form action="" class="form-horizontal col-sm-offset-4&qu ...
- Bootstrap~表单Form
回到目录 在进行自己的后台改版时,大体布局都使用了bootstrap,剩下的表单部分没理由不去使用它,对于表单的美化和布局,bootstrap做的也是很不错的,有大气的边框,多功能的按钮及宏观的表单布 ...
- Bootstrap之表单控件状态
Bootstrap中的表单控件状态主要有三种:焦点状态,禁用状态,验证状态. 一.焦点状态:该状态告诉用户可输入或选择东西 焦点状态通过伪类“:focus”以实现. bootstrap.css相应 ...
- BootStrap 智能表单系列 首页 (持续更新中...)
背景:本码农.NET后端工程师,在项目开发中发现写了很多重复的代码, 于是自己整了一套根据配置来生成form表单的插件,针对表单的改动仅需要修改配置的json即可 使用中发现还是蛮实用的,于是开源出来 ...
- BootStrap 智能表单系列 六 表单数据绑定(编辑页面的数据绑定)
本章介绍如何在生成表单后,将一个model的数据展示到form表单中(一般用于编辑页面) 代码如下(连接地址:https://github.com/xiexingen/Bootstrap-SmartF ...
- BootStrap 智能表单系列 七 验证的支持
但凡是涉及到用户编辑信息然后保存的页面,都涉及到一个数据是否符合要求的检查,需要客服端和服务器端的校验的问题: 客服端的校验主要是为了提高用户体验,而服务器端的校验为了数据的合格性 该插件也为您支持到 ...
- BootStrap 智能表单系列 四 表单布局介绍
表单的布局分为自动布局和自定义布局两种: 自动布局就是根据配置项中第二级配置项中数组的长度来自动使用不同的bootstrap栅格,通过设置autoLayout为true可以实现自动布局 自动以布局就是 ...
- BootStrap 智能表单系列 三 分块表单配置的介绍
相信广大博友肯定碰到过一个编辑页面分了很多块的情况,智能表单插件已经为您支持了这种情况, 代码如下(链接地址:https://github.com/xiexingen/Bootstrap-SmartF ...
- BootStrap 智能表单系列 二 BootStrap支持的类型简介
代码如下(链接地址:https://github.com/xiexingen/Bootstrap-SmartForm/blob/master/demo/form1-basic.html): <! ...
随机推荐
- ubuntu 查看软件包中的内容 (已经安装)
在 使用 apt 进行安装软件的时候,我们要经常判断,软件安装了什么和安装到什么地方.这时候 我们要使用 dpkg -L 命令来进行查看: 同样 在 fedora 上可以使用 rpm -ql iper ...
- vue实现点击图标,图标在2s中完成旋转
<!-- 点击 vue实现点击图标,图标在2s中完成旋转 1==>如何让它在2s内完成旋转 使用动画 transform: rotate(-180deg); 动画的运动状态 transit ...
- 【poj3207】Ikki's Story IV - Panda's Trick(2-sat)
传送门 题意: 给出一个圆,圆上有\(n\)个点,依次为\(0,1,\cdots,n-1\). 现在要连接\(m\)对点,每次连接时可以直接从里面连,也可以从外面连. 最后问,连完这\(m\)对点后, ...
- 线段树set,add基础
UVA11992 Fast Matrix Operations https://www.luogu.org/problem/UVA11992 此类模板题建议随便打打就行了233....
- 史上最全的LaTeX特殊符号语法
史上最全的LaTeX特殊符号语法 运算符 语法 效果 语法 效果 语法 效果 + \(+\) - \(-\) \triangleleft \(\triangleleft\) \pm \(\pm\) \ ...
- 第六章 HTTP首部
第六章 HTTP首部 HTTP首部包括:请求行<方法,URI,版本号>/响应行<版本,状态码>.请求/响应首部字段.通用首部字段.实体首部字段 1.HTTP首部字段 HTTP首 ...
- SQL查询--简单了解SQL(结构化查询语言)
以下内容是从其他地方摘抄过来的哈,原文地址忘记了,当时把内容记在了笔记中 SQL分类: 数据查询语言(DQL) 数据定义语言(DDL) 数据操纵语言(DML) 数据控制语言(DCL) 1.数据查询语言 ...
- 震惊!CCF改名为中国沙雕化学学会!!!
震惊!中国沙雕计算机学会要改名中国沙雕化学学会??? Ak元素 据传,CCF,发现了一种新元素,元素符号暂命名为为Ak,中文名称暂未命名,据说是第250号元素. Ak 元素的发现 珂学家在一个叫洛谷的 ...
- Windows环境Tomcat开启APR并配置http/2.0访问
1.http/2.0需要开启https 参考:https://www.cnblogs.com/zhi-leaf/p/11978615.html 2.下载tcnative-1.dll文件 官网下载地址: ...
- Start LaTex
目录 Size Color Shape Common Function Type Fill Label Beamer Example Size You can use: ultra thin , ve ...