在慕课学习Bootstrap
---恢复内容开始---
可以用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> 无论是哪一个 小于号用<,大于号用>
<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的更多相关文章
- bootstrap插件学习-bootstrap.dropdown.js
bootstrap插件学习-bootstrap.dropdown.js 先看bootstrap.dropdown.js的结构 var toggle = '[data-toggle="drop ...
- bootstrap插件学习-bootstrap.modal.js
bootstrap插件学习-bootstrap.modal.js 先从bootstrap.modal.js的结构看起. function($){ var Modal = function(){} // ...
- 如何快速轻松学习bootstrap
我以前也是通过看一些视频教程来学的,比如慕课网上的,比如51cto上的那些零基础入门bootstrap什么的,还有一些培训班里流传出来的,感觉晕乎乎的,不知所云. 还是在后面不断使用的过程中慢慢体会到 ...
- bootstrap插件学习-bootstrap.typehead.js
先看bootstrap.typehead.js的结构 var Typeahead = function ( element, options ){} //构造器 Typeahead.prototype ...
- bootstrap插件学习-bootstrap.carousel.js
先看bootstrap.carousel.js的结构 var Carousel = function (element, options){} //构造器 Carousel.prototype = { ...
- bootstrap插件学习-bootstrap.collapse.js
先看bootstrap.collapse.js的结构 var Collapse = function ( element, options ){} // 构造器 Collapse.prototype ...
- bootstrap插件学习-bootstrap.alert.js
我们先看bootstrap.alert.js的结构 var dismiss = '[data-dismiss="alert"]' //自定义属性 Alert = function ...
- bootstrap插件学习-bootstrap.button.js
先看bootstrap.button.js的结构 var Button = function ( element, options ){} //构造器 Button.prototype = {} // ...
- bootstrap插件学习-bootstrap.popover.js
先看bootstrap.popover.js的结构 var Popover = function ( element, options ){} //构造器 Popover.prototype = {} ...
随机推荐
- 瑞丽的SQL-基于窗体的排名计算
在SQL Server中,窗体被定义为用户指定的一组行. 之所以要提出窗体这个概念,由于这种基于窗体或分区的又一次计算在实际工作应用范围比較广泛.比如.假设我们要对每一个班级中的学生按成绩进行排序,在 ...
- MaterialDesignLibrary
https://github.com/navasmdc/MaterialDesignLibrary MaterialDesignLibrary.zip
- [AngularJS] Javascript scope and AngularJS $scope
Scope resolution of our Angular documents works exactly the same way scope resolution works in plain ...
- Swift常用语法示例代码(一)
此篇文章整理自我以前学习Swift时的一些练习代码,其存在的意义多是可以通过看示例代码更快地回忆Swift的主要语法. 如果你想系统学习Swift或者是Swift的初学者请绕路,感谢Github上Th ...
- 4K Block Size的Device和 Aligned IO
http://www.cnblogs.com/cenalulu/p/3587006.html 背景:最近采购了一批新的服务器,底层的存储设备的默认physical sector size从原有的 ...
- jQuery Mobile 连接外部连接或切换动画
jQuery Mobile不同网页之间的跳转问题 jQuery Mobile,一个新的手机终端脚本开发库,从名字可以看出,它是基于jQuery:目前支持很多种手机设备,包括IOS/Android/Bl ...
- Android基本控件之ListView(二)<ListView优化>
之前我们说到ListView的基本用法.但是,有很多的时候会额外的占用一些内存,从而消耗了性能.既然有消耗性能的可能,那么我们就对其做出相应的优化 我们首先来说说优化的步骤: 第一步.将宽和高设置为填 ...
- Linux编程之《守护进程》
Intro ----- 守护进程,也就是通常说的Daemon进程,是Linux中的后台服务进程.它是一个生存期较长的进程,通常独立于控制终端并且周期性地执行某种任务或等待处理某些发生的事件.守护进程常 ...
- CollatingOfData 之 JsonHelper
1 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System. ...
- B - 一行盒子
Description 你有一行盒子,从左到右依次编号为1, 2, 3,…, n.你可以执行四种指令: 1 X Y表示把盒子X移动到盒子Y左边(如果X已经在Y的左边则忽略此指令).2 X Y表示把盒子 ...