Bootstrap3.0和bootstrap2.x的区别
bootstrap已经推出了3.0的新版,看起来2.3.x版本也不会再更新了。那么bootstrap 2.3版与3.0版的区别在哪里呢?下面我们就来介绍一下。
Bootstrap 3.0增加了一些新的特性,对于一些类也进行了调整。不过两个版本在使用的方法上是没什么大的区别的。
bootstrap 2.3版与3.0版重要类的改变对比:
|
Bootstrap 2.x |
Bootstrap 3.0 |
|
.container-fluid |
.container |
|
.row-fluid |
.row |
|
.span* |
.col-md-* |
|
.offset* |
.col-md-offset-* |
|
.brand |
.navbar-brand |
|
.nav-collapse |
.navbar-collapse |
|
.nav-toggle |
.navbar-toggle |
|
.btn-navbar |
.navbar-btn |
|
.hero-unit |
.jumbotron |
|
.icon-* |
.glyphicon .glyphicon-* |
|
.btn |
.btn .btn-default |
|
.btn-mini |
.btn-xs |
|
.btn-small |
.btn-sm |
|
.btn-large |
.btn-lg |
|
.visible-phone |
.visible-sm |
|
.visible-tablet |
.visible-md |
|
.visible-desktop |
.visible-lg |
|
.hidden-phone |
.hidden-sm |
|
.hidden-tablet |
.hidden-md |
|
.hidden-desktop |
.hidden-lg |
|
.input-small |
.input-sm |
|
.input-large |
.input-lg |
|
.checkbox.inline .radio.inline |
.checkbox-inline .radio-inline |
|
.input-prepend .input-append |
.input-group |
|
.add-on |
.input-group-addon |
|
.thumbnail |
.img-thumbnail |
|
ul.unstyled |
.list-unstyled |
|
ul.inline |
.list-inline |
bootstrap 3.0版新增的类
|
Element |
Description |
|
Panels |
.panel .panel-default .panel-body .panel-title .panel-heading .panel-footer .panel-collapse |
|
List groups |
.list-group .list-group-item .list-group-item-text .list-group-item-heading |
|
Glyphicons |
.glyphicon |
|
Jumbotron |
.jumbotron |
|
Tiny grid (<768 px) |
.col-xs-* |
|
Small grid (>768 px) |
.col-sm-* |
|
Medium grid (>992 px) |
.col-md-* |
|
Large grid (>1200 px) |
.col-lg-* |
|
Offsets |
.col-sm-offset-* .col-md-offset-* .col-lg-offset-* |
|
Push |
.col-sm-push-* .col-md-push-* .col-lg-push-* |
|
Pull |
.col-sm-pull-* .col-md-pull-* .col-lg-pull-* |
|
Input groups |
.input-group .input-group-addon .input-group-btn |
|
Form controls |
.form-control .form-group |
|
Button group sizes |
.btn-group-xs .btn-group-sm .btn-group-lg |
|
Navbar text |
.navbar-text |
|
Navbar header |
.navbar-header |
|
Justified tabs / pills |
.nav-justified |
|
Responsive images |
.img-responsive |
|
Contextual table rows |
.success .danger .warning .active |
|
Contextual panels |
.panel-success .panel-danger .panel-warning .panel-info |
|
Modal |
.modal-dialog .modal-content |
|
Thumbnail image |
.img-thumbnail |
|
Well sizes |
.well-sm .well-lg |
|
Alert links |
.alert-link |
bootstrap 3.0版删除的类
|
Element |
Removed from 2.x |
3.0 Equivalent |
|
Form actions |
.form-actions |
N/A |
|
Search form |
.form-search |
N/A |
|
Fluid container |
.container-fluid |
.container (no more fixed grid) |
|
Fluid row |
.row-fluid |
.row (no more fixed grid) |
|
Navbar inner |
.navbar-inner |
N/A |
|
Dropdown submenu |
.dropdown-submenu |
N/A |
|
Tab alignments |
.tabs-left .tabs-right .tabs-below |
N/A |
Bootstrap3.0和bootstrap2.x的区别的更多相关文章
- Byte,TBytes,array of Byte, array[0..9] of byte的区别
Byte前面已经说是存放bit的单元,是电脑内存的基本单位,byte表示0-255中的256个数字 下面为Byte的用法: var B: Byte; // 表示0-255的数字 begin B := ...
- andorid 控件 Bootstrap3.0风格的控件 精美UI控件库
Bootstrap是Twitter推出的一个开源的用于前端开发的工具包.它由Twitter的设计师Mark Otto和Jacob Thornton合作开发,是一个CSS/HTML框架.Bootstra ...
- Bootstrap3.0(进度条、媒体对象、列表组、面板)
Bootstrap3.0学习第十六轮(进度条.媒体对象.列表组.面板) 前言 阅读之前您也可以到Bootstrap3.0入门学习系列导航中进行查看http://www.cnblogs.com/aehy ...
- Bootstrap3.0学习14
Bootstrap3.0学习第十四轮(分页.徽章) 前言 阅读之前您也可以到Bootstrap3.0入门学习系列导航中进行查看http://www.cnblogs.com/aehyok/p/340 ...
- Bootstrap3.0学习第八轮
Bootstrap3.0学习第八轮(工具Class) 前言 阅读之前您也可以到Bootstrap3.0入门学习系列导航中进行查看http://www.cnblogs.com/aehyok/p/34 ...
- Bootstrap3.0学习第六轮(表单)
Bootstrap3.0学习第六轮(表单) 前言 阅读之前您也可以到Bootstrap3.0入门学习系列导航中进行查看http://www.cnblogs.com/aehyok/p/3404867.h ...
- Bootstrap3.0学习第三轮(栅格系统案例)
Bootstrap3.0学习第三轮(栅格系统案例) 前言 在前面的一篇文章当中http://www.cnblogs.com/aehyok/p/3400499.html主要学习了栅格系统的基本原理,以及 ...
- Bootstrap3.0入门学习系列
Bootstrap3.0入门学习系列规划[持续更新] 前言 首先在此多谢博友们在前几篇博文当中给与的支持和鼓励,以及在回复中提出的问题.意见和看法. 在此先声明一下,之前在下小菜所有的随笔文章中, ...
- Bootstrap3.0入门学习系列教程
可视化布局:http://www.runoob.com/try/bootstrap/layoutit/ 1.浏览器兼容性:你可以去看看大牛的一篇文章http://www.cnblogs.com/lhb ...
随机推荐
- CUBA Platform —— 开源的、可靠的企业级应用开发利器
原文:CUBA Platform: An Open-Source Java Framework for Rapid Application Development 翻译:CUBA China CUBA ...
- Spring中使用JMS
JMS为了Java开发人员与消息代理(message broker)交互和收发消息提供了一套标准API.而且,由于每个message broker都支持JMS,所以我们就不需要学习额外的消息API了. ...
- 使用FileSystemWatcher监视指定目录
使用 FileSystemWatcher 监视指定目录中的更改.可监视指定目录中的文件或子目录的更改. 以下是一个简单的实例,用来监控指定目录下文件的新增.删除.重命名等情况(文件内容更改会触发多次, ...
- [javaEE] Servlet中Session的使用
Session是一个域 作用范围:当前会话范围 生命周期:当程序第一次调用request.getSession()创建出客户端的session对象,30分钟没有操作认为超时,这个可以在web.xml中 ...
- OpenStack IceHouse 部署 - 1 - 架构说明
参考架构 Architecture from OpenStack Install Guide Reference Architecture Network Isolation 在本次部署中,我们采用了 ...
- css 样式加载次序
一般而言,所有的样式会根据下面的规则层叠于一个新的虚拟样式表中,其中数字 4 拥有最高的优先权(本人理解为:先加载1的样式,然后用2的样式覆盖1中的样式,3.4同理) 浏览器缺省设置(浏览器默认的样式 ...
- idea 常用快捷键 笔记
1. main方法 输入psv tab或回车 类似的 psf fori (for循环) sout 备注: 通过ctrl+j 可以查询 2. 删除当前行 ctrl + y 3. 复制当前行 ctrl ...
- Linux VPS主机利用Crontab实现定时重启任务
第一.安装Crontab可执行环境 一般的VPS/服务器是支持的,但是有些可能没有支持就需要我们来给予安装. A - centos系统 #安装Crontab yum install vixie-cro ...
- 关于电脑宽带显示连接 qq可以登录 但是无法上网的问题
---恢复内容开始--- 大家都遇到过这种情况吧,右下角显示网络已连接,但就是上不了网,解决的办法大都是什么,打开网络与共享中心设置什么协议什么的,当然,这些有可能是有用的,但是有一些不管怎么设置协议 ...
- DOM操作表单
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>& ...