一.表单(以下示例 * 代表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. 四、angularjs 如何在页面没有登录的情况下阻止用户通过更改url进入页面--$stateChangeStart

    有时候用户没有登录或者在某些情况下你是不希望用户进入页面,但是angular的路由机制可以让用户直接通过更改Url进入页面,如何处理这一问题呢? ——监控路由转换机制 $stateChangeStar ...

  2. [翻译] MMMaterialDesignSpinner

    MMMaterialDesignSpinner Usage To run the example project, clone the repo, and run pod install from t ...

  3. Java实例---计算器实例

    1.计算器上的键的显示名字 1.0 继承JFrame类 public class Calculate extends JFrame { } 1.1定义常量 /** 计算器上的键的显示名字 */ pub ...

  4. codeforces 420D Cup Trick

    codeforces 420D Cup Trick 题意 题解 官方做法需要用到线段树+平衡树(? 如果数据小的话似乎可以用莫队).然后代码好长好长.我补了一个只要用到树状数组的做法. 代码 #inc ...

  5. 一个“日期”字符串进行比较的case

    项目中有个功能是比较会员是否过期,review同事的代码,发现其写法比较奇葩,但线上竟也未出现bug. 实现大致如下: $expireTime = "2014-05-01 00:00:00& ...

  6. Python定制类(进阶6)

    转载请标明出处: http://www.cnblogs.com/why168888/p/6411919.html 本文出自:[Edwin博客园] Python定制类(进阶6) 1. python中什么 ...

  7. VIM在Win7上的安装教程

    1.下载 目前VIM在其官网上的最新版本为7.4,Windows版本名称为GVIM,在百度软件中可以下载GVIM的最新版本,建议 在百度上下载,因为比较快.在百度上搜索"GVIM" ...

  8. [转]百度地图API详解之地图坐标系统

    博客原文地址:http://www.jiazhengblog.com/blog/2011/07/02/289/ 我们都知道地球是圆的,电脑显示器是平的,要想让位于球面的形状显示在平面的显示器上就必然需 ...

  9. http_post_data发送数据的获取方式

    private function http_get_data($url){ $ch = curl_init($url) ; curl_setopt($ch, CURLOPT_RETURNTRANSFE ...

  10. POJ 1703 Find them, Catch them(确定元素归属集合的并查集)

    Find them, Catch them Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 52925   Accepted: ...