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): <! ...
随机推荐
- liteos动态加载(十三)
1. 概述 1.1 基本概念 动态加载是一种程序加载技术. 静态链接是在链接阶段将程序各模块文件链接成一个完整的可执行文件,运行时作为整体一次性加载进内存.动态加载允许用户将程序各模块编译成独立的文件 ...
- Anaconda3使用
1.使用conda安装各种包到指定路径下的环境, conda install --prefix=/home/xxx/PycharmProjects/project_01/env numpy 2.安装指 ...
- 05justify-content
display: flex; 的默认轴是x轴 justify-content: 设置主轴上的子元素排列的方式 所以在使用之前要确定好哪一个是主轴 /* justify-content:flex-sta ...
- python使用open的OSError: [Errno 22] Invalid argument错误
这两天在写一个新闻类的spider时,遇到了OSError: [Errno 22] Invalid argument这个错误,苦恼的两天,无果.后来通过请教学长,发现原来是打开的文件名中含有一些系统的 ...
- 1.web2
听说聪明的人都能找到答案http://123.206.87.240:8002/web2/ 直接查看源码~~~
- 洛谷 P4710 「物理」平抛运动
洛谷 P4710 「物理」平抛运动 洛谷传送门 题目描述 小 F 回到班上,面对自己 28 / 110 的物理,感觉非常凉凉.他准备从最基础的力学学起. 如图,一个可以视为质点的小球在点 A(x_0, ...
- JDOJ1178:铺地板II
JDOJ1178:铺地板II https://neooj.com/oldoj/problem.php?id=1178 题目描述 用1 x 1和2 x 2的磁砖不重叠地铺满N x 3的地板,共有多少种方 ...
- ionic4打包和ngix配置
ionic4打包 ng run app:build --base-href=/edu/course/mobile压缩打包 ng run app:build:production --base-href ...
- angular6.x 引入echarts
因为angular2+ 使用 ==typescript==开发,所以想要使用echarts,必须安装echarts针对angular的插件ngx-echarts.本文案列实际效果如上图. 安装ngx- ...
- split task
和印度的team合作的时候,他们经常有些要求,然后我们这边有时候需要改代码来满足他们的需求. 最近一次,他们要求在我们的一个工具中为他们加入2个asp.net的注册命令,不知道什么原因,system ...