---恢复内容开始---

可以用class=“h1”等给元素加h1样式

<h>------<small>----</small></h>     <small>是副标题

class="lead"     强调文本,突出显示

<strong>---</strong>     粗体

<i>---</i>   <em>---</em>     斜体

  • text-muted:提示,使用浅灰色(#999)                                                                                                                text-left                 文本向左对齐                                                           .table:基础表格
  • .text-primary:主要,使用蓝色(#428bca)                                                                                                           text-right               文本向右对齐                                                           .table-striped:斑马线表格
  • .text-success:成功,使用浅绿色(#3c763d)                                                                                                           text-center             文本居中对齐                                                           .table-bordered:带边框的表格
  • .text-info:通知信息,使用浅蓝色(#31708f)                                                                                                        text-justify            文本两端对齐                                                            .table-hover:鼠标悬停高亮的表格
  • .text-warning:警告,使用黄色(#8a6d3b)                                                                                                                                                                                                                       .table-condensed:紧凑型表格
  • .text-danger:危险,使用褐色(#a94442)                                                                                                                                                                                                                         .table-responsive:响应式表格

class=“list-inline”     内联列表,简单说就是水平的没有符号的列表,为导航而生

自定义列表中加class=“dl-horizontal”    自定义水平列表

在网页上插入代码有三种<code>单行</code>     <pre>多行</pre>     <kbd>用户用键盘操作</kbd>     无论是哪一个  小于号用&lt,大于号用&gt

<pre class="pre-scrollable">多行代码是,又不想让其占用过多面积,此类可以出现滚动条,高度限定为340px

类名 描述
.active 表示当前活动的信息
.success 表示成功或者正确的行为
.info 表示中立的信息或行为
.warning 表示警告,需要特别注意
.danger 表示危险或者可能是错误的行为

水平表单class=“form-horizontal”

内联表单class=“form-inline”

<div class="form-group"><input type="--" class="form-control" placehoder="Enter email"></div>

下拉选择框(滚动条模式的话,在select中加multiple)

<div class="form-group">

<select class="form-control">

<option></option>

<option></option>

<option></option>

</select>

</div>

文本域和原始使用方法一样,设置rows可定义其高度,设置cols可以设置其宽度。但如果textarea元素中添加了类名“form-control”类名,则无需设置cols属性。因为Bootstrap框架中的“form-control”样式的表单控件宽度为100%auto

<form role="form">

  <div class="form-group">

    <textarea class="form-control" rows="3"></textarea>

  </div>

</form>

复选框checkbox和单选择按钮radio      水平排列加inline

<form role="form">
<div class="form-group">
<input type="email" class="form-control" placeholder="Enter email">
</div>
</form>

---恢复内容结束---

可以用class=“h1”等给元素加h1样式

<h>------<small>----</small></h>     <small>是副标题

class="lead"     强调文本,突出显示

可以用class=“h1”等给元素加h1样式

<h>------<small>----</small></h>     <small>是副标题

class="lead"     强调文本,突出显示

在慕课学习Bootstrap的更多相关文章

  1. bootstrap插件学习-bootstrap.dropdown.js

    bootstrap插件学习-bootstrap.dropdown.js 先看bootstrap.dropdown.js的结构 var toggle = '[data-toggle="drop ...

  2. bootstrap插件学习-bootstrap.modal.js

    bootstrap插件学习-bootstrap.modal.js 先从bootstrap.modal.js的结构看起. function($){ var Modal = function(){} // ...

  3. 如何快速轻松学习bootstrap

    我以前也是通过看一些视频教程来学的,比如慕课网上的,比如51cto上的那些零基础入门bootstrap什么的,还有一些培训班里流传出来的,感觉晕乎乎的,不知所云. 还是在后面不断使用的过程中慢慢体会到 ...

  4. bootstrap插件学习-bootstrap.typehead.js

    先看bootstrap.typehead.js的结构 var Typeahead = function ( element, options ){} //构造器 Typeahead.prototype ...

  5. bootstrap插件学习-bootstrap.carousel.js

    先看bootstrap.carousel.js的结构 var Carousel = function (element, options){} //构造器 Carousel.prototype = { ...

  6. bootstrap插件学习-bootstrap.collapse.js

    先看bootstrap.collapse.js的结构 var Collapse = function ( element, options ){} // 构造器 Collapse.prototype ...

  7. bootstrap插件学习-bootstrap.alert.js

    我们先看bootstrap.alert.js的结构 var dismiss = '[data-dismiss="alert"]' //自定义属性 Alert = function ...

  8. bootstrap插件学习-bootstrap.button.js

    先看bootstrap.button.js的结构 var Button = function ( element, options ){} //构造器 Button.prototype = {} // ...

  9. bootstrap插件学习-bootstrap.popover.js

    先看bootstrap.popover.js的结构 var Popover = function ( element, options ){} //构造器 Popover.prototype = {} ...

随机推荐

  1. Excel设置数据有效性实现单元格下拉菜单的3种方法(转)

    http://blog.csdn.net/cdefu/article/details/4129136 一.直接输入: 1.选择要设置的单元格,譬如A1单元格: 2.选择菜单栏的“数据”→“有效性”→出 ...

  2. BZOJ 1079: [SCOI2008]着色方案 记忆化搜索

    1079: [SCOI2008]着色方案 Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://www.lydsy.com/JudgeOnline/p ...

  3. epoll使用具体解释(精髓)

    epoll - I/O event notification facility 在linux的网络编程中,非常长的时间都在使用select来做事件触发.在linux新的内核中,有了一种替换它的机制,就 ...

  4. [Javascript] Monads

    Monads allow you to nest computations. They are a pointed functor that adds mjoin and chain function ...

  5. JavaScript触摸与手势事件

    JavaScript触摸与手势事件 发表于 2012-12-10 由 admin iOS版Safari为了向开发人员传达一些特殊信息,新增了一些专有事件.因为iOS设备既没有鼠标也没有键盘,所以在为移 ...

  6. RTB实时竞价广告是未来趋势

    原文:http://www.inboundjournals.com/rtb-real-time-bidding-the-future-of-online-advertising/ [资讯图表] RTB ...

  7. objc_msgSend消息传递学习笔记 – 消息转发

    该文是 objc_msgSend消息传递学习笔记 – 对象方法消息传递流程 的基础上继续探究源码,请先阅读上文. 消息转发机制(message forwarding) Objective-C 在调用对 ...

  8. Turn the pokers

    Problem Description During summer vacation,Alice stay at home for a long time, with nothing to do. S ...

  9. Spring 中jdbcTemplate 实现执行多条sql语句

    说一下Spring框架中使用jdbcTemplate实现多条sql语句的执行: 很多情况下我们需要处理一件事情的时候需要对多个表执行多个sql语句,比如淘宝下单时,我们确认付款时要对自己银行账户的表里 ...

  10. hello world from hibernate

    初次学习hibernate,第一个程序,用的是XML配置文件 准备工作:下载hibernate的JAR包,我下的是当前最新的4.2.3,SQL的数据库驱动文件SQLJDBC,导入上述架包.