twitter-bootstrap – 更新Bootstrap到版本3 – 我需要做什么?

我是新来的Bootstrap,有旧版本2.3.2。

版本3已发布。如果我想使用最新版本,我只是简单地替换CSS和Javascript文件

解决方法

>从 http://getbootstrap.com/下载最新版本或将css和js文件替换为最新版本或使用CDN( http://www.bootstrapcdn.com/)
>迁移你的html,确实读 http://bootply.com/bootstrap-3-migration-guide.你可以尝试 http://twitterbootstrapmigrator.w3masters.nl/http://code.divshot.com/bootstrap3_upgrader/(提供检查表)

> Images not responsive by default in Twitter Bootstrap 3?
> Styling Twitter’s Bootstrap 3.x Buttons
> Change navbar color in Twitter Bootstrap 3

> remove html5shiv原因TB下载支持IE7和Firefox 3.x添加html5shiv.js以添加对HTML5元素的支持到IE8
>为IE中的媒体查询支持添加respond.js(https://github.com/scottjehl/Respond)。注意这不适用于CDN,请参阅:IE8 issue with Twitter Bootstrap 3
>如果你使用Glyphicons,你必须从http://glyphicons.getbootstrap.com/添加它们(图标已经移动到单独的存储库。)Glyphicons从RC2(字形格式的Glyphic字体格式,从Glyphicon Halflings集)
>如果你使用JavaScript Typeahead组件,你将不得不集成https://github.com/twitter/typeahead.js/(因为typeahead javascript被丢弃)参见:Typeahead problems with Bootstrap 3.0 RC1或使用“老”插件https://github.com/bassjobsen/Bootstrap-3-Typeahead,参见:http://stackoverflow.com/questions/18615964/ajax-call-in-bootstrap-3-0-typeahead/18620473
>切换到最新版本的jQuery 1.x(不要使用2.x版本,因为jQuery 2.x不支持IE8)
>如果您使用向您的代码添加或插入html的第三方小部件(例如addthis.com,sharethis.com和Google地图),请为框大小创建一个包装器,请参阅:Right border of the AddThis counter missing with Twitter’s Bootstrap 3

其他:

Bootstrap 3切换到Box-sizing:border-Box为什么?:http://stackoverflow.com/a/18858771/1596547

注意对IE7的支持已被删除https://github.com/coliff/bootstrap-ie7尝试使用一些条件CSS添加CSS部分。

相关文章

Bootstrip HTML 查询搜索常用格式模版 <form class=&...
如何在按钮上加红色数字 您可以使用Bootstrap的badge组件来在...
要让两个按钮左右排列,你可以使用 Bootstrap 的网格系统将它...
是的,可以将status设置为布尔类型,这样可以在前端使用复选...
前端工程师一般用的是Bootstrap的框架而不是样式,样式一般自...
起步导入:<linkrel="stylesheet"href="b...