一.表单(以下示例 * 代表class)

  注意:a.使用表单的关键字form

    b.所有的提示词使用label包裹

    c.所写内容按div分类,使得层次分明

  1.基本表单+表单组合+内联表单

  *=form-inline  使得标签都归为一行,即为内联

  *=form-group  分组,使得层次分明

  *=input-group  使指定符号与输入框分组

  *=input-group-addon  使指定符号位于输入框之前

 <form class="form-inline">
<div class="form-group">
<label>姓名</label>
<input type="text" name="" id="" value="" />
</div>
<div class="form-group">
<label>密码</label>
<input type="password" name="" id="" value="" />
</div>
<div class="form-group">
<label>薪资</label>
<div class="input-group">
<span class="input-group-addon">$</span>
<input type="text" name="" id="" value="" />
</div>
</div>
</form>

  2.水平排列

  *=form-horizontal 表示水平分布

  *=control-label 控件组与水平分布一同实现inline所有标签同行的效果

 <form class="form-horizontal">
<label class="col-md-6 control-label">用户名</label>
<input class="col-md-6" type="text" name="" id="" value="" />
<label class="col-md-6 control-label">邮箱</label>
<input class="col-md-6" type="email" name="" id="" value="" />
</form>

  3.多选框与禁用

  *=checkbox disabled 表示多选与禁用

 <div class="checkbox disabled">
<label>
<input type="checkbox" disabled="disabled" name="" id="" value="" />吃饭
</label>
</div>
<div class="checkbox">
<label >
<input type="checkbox" name="" id="" value="" />睡觉 </label>
</div>
<div class="checkbox ">
<label>
<input type="checkbox" name="" id="" value="" />打豆豆 </label>
</div>

二.图片

  1.响应式图片 img-responsive

  2.图片形状

    a.img-rounded

    b.img-circle

    c.img-thumbnail

三.辅助类

  1.文本颜色

    *=text-muted 灰白色

    *=text-primary 海军蓝

    *=text-success 成功绿

    *=text-info 天空蓝

    *=text-danger 危险红

    *=text-warning 警告黄

  2.背景颜色

    *=bg-primary 海军蓝

    *=bg-info 天空蓝

    *=bg-warning 警告黄

    *=bg-danger 危险红

    *=success 成功绿

  3.关闭按钮 *=close

  4.三角符号 *=caret

四.响应式

  1.显示 *=visible-lg/md/sm/xs-block/inline

  2.隐藏 *=hidden-lg/md/sm/xs

Bootstrap03的更多相关文章

随机推荐

  1. 基于yaf框架和uploadify插件,做的一个导入excel文件,查看并保存数据的功能

    思路: 1.首先,页面前端,上传附件,提交给后台,并带一个随机性的参数(可以用时间戳): 2.后端接收附件,做一系列的逻辑处理,无误后,将对应的文件存储在上传的目录下: 3.然后前端,上传附件成功后, ...

  2. Spring MVC基本配置和实现(三)

    Item public class Item { private Integer id; private String name; public Integer getId() { return id ...

  3. package.json作用

    这个文档的内容是你必须要知道的,它必须是JSON文本格式.每个项目的根目录下面,一般都有一个package.json文件,定义了这个项目所需要的各种模块,以及项目的配置信息(比如名称.版本.许可证等元 ...

  4. 消除 Xcode7 中 directory not found for option 'xxxx' 警告

    消除 Xcode7 中 directory not found for option 'xxxx' 警告 升级Xcode7之后,你会遇到一些警告信息,诸如以下一条: ld: warning: dire ...

  5. Current_Path 获取脚本所在路径(当前路径),取当前时间做文件名(uformat)

    获取脚本当前所在路径: $CurrentPath = $MyInvocation.MyCommand.Path.substring(0,$MyInvocation.MyCommand.Path.Las ...

  6. Python学习---ORM查询之基于对象的正向/反向/聚合/分组/Q/F查询

    ORM查询之基于对象的正向查询与反向查询 对象形式的查询 # 正向查询 ret1=models.Book.objects.first() print(ret1.title) print(ret1.pr ...

  7. PHP调优

    目录 php.ini 内存 Zend OPcache 文件上传 最长执行时间 处理会话 缓冲输出 真实路径缓存 php.ini PHP解释器在 php.ini 文件中配置和调优.web和cli使用的路 ...

  8. selenium+python smtp邮件

    #code:utf-8 import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIM ...

  9. 美团2018年CodeM大赛-初赛B轮 B 配送(最短路)

    美团2018年CodeM大赛-初赛B轮 B 配送 题意 题解 对于每个任务,只要从上个任务的终点出发即可. 时间.地点很少,可以算出每个地点-时间的最小花费. 以题目描述的起点终点起始结束时间建图,很 ...

  10. 【转】多线程Core Data

    原文地址:http://www.cocoanetics.com/2012/07/multi-context-coredata/ Multi-Context CoreData When you star ...