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 ...
随机推荐
- python 3.x 爬虫基础---Requersts,BeautifulSoup4(bs4)
python 3.x 爬虫基础 python 3.x 爬虫基础---http headers详解 python 3.x 爬虫基础---Urllib详解 python 3.x 爬虫基础---Requer ...
- DateGridView 分页显示
l 思路:将数据表整体填充至一个Dataset中,探后部分显示(DataaAdapter Fill重载) l DataGridView 控件 l BindingNavigator 控件 l B ...
- EF Code-First数据迁移
Code-First数据迁移 首先要通过NuGet将EF升级至最新版本. 新建MVC 4项目MvcMigrationDemo 添加数据模型 Person 和 Department,定义如下: usi ...
- C# 工具类之数据库链接
一.SQL Server 相关 /// <summary> /// 数据库的通用访问代码 /// 此类为抽象类, /// 不允许实例化,在应用时直接调用即可 /// </summa ...
- github提交代码不用输入账号密码的解决方案
1.在命令行输入命令: git config --global credential.helper store 这一步会在用户目录下的.gitconfig文件最后添加: [credential] he ...
- memcached 细究(一)
memcached是高性能的分布式的内存缓存服务器.由国外社区网站LIVEJOURNAL的开发团队开发. 使用目的: 通过缓存数据库查询结果,减少数据库的访问次数,以提高动态web应用的速度.提高可扩 ...
- js中的同步与异步的问题
前言 近来,总是忙于拿js写一些案例,因为是小白,并没有什么丰富的经验,对各个知识点把握也不是很全面,写起来真的是...一言难尽,太痛苦了= =.尤其是在写一些轮播的时候,里面需要用到定时器,而一旦用 ...
- HTML5拖拽/拖放(drag & drop)详解
H5中拖拽属性: draggable: auto | true | false 拖动事件: - dragstart 在元素开始被拖动时触发 - dragend 在拖动操作完成时触发 - dra ...
- HTML标签类型
标签分类: 一.块标签:块标签是指本身属性为display:block;的元素. 1.默认占一行可以设置宽高, 2.在不设置宽度的情况下,块级元素的宽度是它父级元素内容的宽度 3.在不设置高度的情况下 ...
- react 共享数据流
层层传递Props 单向数据流层层传递,繁琐不好管理. Context 什么是context? context是react提供的组件通信api context有什么用? 解决{组件.js}中多层级组件 ...