Bootstrap03
一.表单(以下示例 * 代表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的更多相关文章
随机推荐
- Monkey测试环境搭建
一.JAVA环境的搭建 1.安装jdk-7u60-windows-x64(JAVA1.7.0,也可安装最新版的JAVA1.8.0),默认安装路径C盘: 2.JAVA环境变量的搭建: 我的电脑→右键属性 ...
- [Swift] 创建一个对象
创建一个对象 先写一个People类 // // People.swift // Class // // Created by YouXianMing on 15/3/18. // Copyright ...
- 中文乱码(Python、WEB、ajax)
http://my.oschina.net/leejun2005/blog/74430 #查看errorb是unicode,还是stringprint isinstance(errorb,unicod ...
- 8个PHP数组面试题
1.写函数创建长度为10的数组,数组中的元素为递增的奇数,首项为1. 代码如下: <?php function arrsort($first,$length){ $arr = array(); ...
- How to Remove A Service Entry From Win10 Service List
Warning Please do this operation CAREFULLY, otherwise you may get something wrong with your system. ...
- August 29th 2017 Week 35th Tuesday
Life is a pure flame, and we live by an invisible sun within us. 生命如纯洁的火焰,而维系这火焰的是我们内心的太阳. Burn my l ...
- Linux中配置ftp服务器
1. 先用rpm -qa| grep vsftpd命令检查是否已经安装,如果ftp没有安装,使用yum -y install vsftpd 安装,(ubuntu 下使用apt-get instal ...
- BZOJ 2038 小Z的袜子(hose) 莫队算法模板题
题目链接: https://www.lydsy.com/JudgeOnline/problem.php?id=2038 题目大意: 作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中 ...
- 高性能 Socket 组件 HP-Socket v3.2.1-RC3 公布
HP-Socket 是一套通用的高性能 TCP/UDP Socket 组件,包括服务端组件.client组件和 Agent 组件,广泛适用于各种不同应用场景的 TCP/UDP 通信系统.提供 C/C+ ...
- Inno Setup替代默认的背景图片
一.这是默认的设置生成的安装程序界面. 不行,我要定制!我要换!那么,这两货是从哪里来的呢?既然是默认的就有,那我下意识的来到了inno setup的安装路径下,果然让我发现了. 好了,于是我用我准备 ...