(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的更多相关文章

  1. bootstrap+font-awesome表单

    bootstrap+font-awesome表单 <form action="" class="form-horizontal col-sm-offset-4&qu ...

  2. Bootstrap~表单Form

    回到目录 在进行自己的后台改版时,大体布局都使用了bootstrap,剩下的表单部分没理由不去使用它,对于表单的美化和布局,bootstrap做的也是很不错的,有大气的边框,多功能的按钮及宏观的表单布 ...

  3. Bootstrap之表单控件状态

    Bootstrap中的表单控件状态主要有三种:焦点状态,禁用状态,验证状态.   一.焦点状态:该状态告诉用户可输入或选择东西 焦点状态通过伪类“:focus”以实现. bootstrap.css相应 ...

  4. BootStrap 智能表单系列 首页 (持续更新中...)

    背景:本码农.NET后端工程师,在项目开发中发现写了很多重复的代码, 于是自己整了一套根据配置来生成form表单的插件,针对表单的改动仅需要修改配置的json即可 使用中发现还是蛮实用的,于是开源出来 ...

  5. BootStrap 智能表单系列 六 表单数据绑定(编辑页面的数据绑定)

    本章介绍如何在生成表单后,将一个model的数据展示到form表单中(一般用于编辑页面) 代码如下(连接地址:https://github.com/xiexingen/Bootstrap-SmartF ...

  6. BootStrap 智能表单系列 七 验证的支持

    但凡是涉及到用户编辑信息然后保存的页面,都涉及到一个数据是否符合要求的检查,需要客服端和服务器端的校验的问题: 客服端的校验主要是为了提高用户体验,而服务器端的校验为了数据的合格性 该插件也为您支持到 ...

  7. BootStrap 智能表单系列 四 表单布局介绍

    表单的布局分为自动布局和自定义布局两种: 自动布局就是根据配置项中第二级配置项中数组的长度来自动使用不同的bootstrap栅格,通过设置autoLayout为true可以实现自动布局 自动以布局就是 ...

  8. BootStrap 智能表单系列 三 分块表单配置的介绍

    相信广大博友肯定碰到过一个编辑页面分了很多块的情况,智能表单插件已经为您支持了这种情况, 代码如下(链接地址:https://github.com/xiexingen/Bootstrap-SmartF ...

  9. BootStrap 智能表单系列 二 BootStrap支持的类型简介

    代码如下(链接地址:https://github.com/xiexingen/Bootstrap-SmartForm/blob/master/demo/form1-basic.html): <! ...

随机推荐

  1. easyui三

    陈旧的开发模式 美工(ui工程师:出一个项目模型) java工程师:将原有的html转成jsp,动态展示数据 缺点: 客户需要调节前端的展示效果 解决:由美工去重新排版,重新选色.Vs前后端分离 美工 ...

  2. c# 第26节 Main方法

    本节内容: 1:Main方法 2:Main方法的定义 3:测试Main函数传入参数 4:Main的大总结 1:Main方法是什么 2:Main方法的定义 3:测试打印出外部传入Main的参数 clas ...

  3. ubuntu系统中查看python模块的源码

    案例:查看multiprocessing模块源码 1. 进入交互模式,导入模块,以multiprocessing模块为例 2. 查看multiprocessing.__file__属性,找到该模块的源 ...

  4. 题解:openjudge 1.11——01

    题目 思路:二分查找 来,上代码 #include<cstdio> #include<iostream> using namespace std; +]; int n,m; i ...

  5. 突然看到原来除了jar包还有war包啊?????

    先来说说区别: 首先,jar包呢,是一个压缩文件,可以由很多文件压缩而成,,简单来说就是,jar包是别人写好的一些类,然后对这些类 进行打包,这就是jar包,你可以直接用这些  jar包,使用里面的类 ...

  6. C++ 基于rapidjson对json字符串的进行序列化与反序列化

    json字符串的解析以封装在我们开发过程中经常见到, 尤其在socket通信上面, 在一次项目中碰到json字符串的进行解析, 而公司有没有封装好的库, 于是就自己基于开源的库进行了一次封装, 接下是 ...

  7. springboot+shrio简易登录登出和用户权限认证。

    源码:https://github.com/huangshengz/myJavaDemo本例子参考:https://www.cnblogs.com/HowieYuan/p/9259638.html 本 ...

  8. ReverseInteger:实现int整数的反转

    原文链接 Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 ...

  9. 在ASP.Net Core 中使用枚举类而不是枚举

    前言:我相信大家在编写代码时经常会遇到各种状态值,而且为了避免硬编码和代码中出现魔法数,通常我们都会定义一个枚举,来表示各种状态值,直到我看到Java中这样使用枚举,我再想C# 中可不可以这样写,今天 ...

  10. mac pe简单安装方法

    1.工具下载 TechTool Pro for mac V11.0.4:http://www.pc6.com/mac/112462.html 2.准备16g u盘 3.安装工具并按照注册码注册 在Te ...