使用twitter bootstrap rails gem升级twitter-bootstrap



我在应用程序中使用twitter引导程序rails gem。

我发现这个gem使用2.3 twitter引导程序版本,因为我必须使用

class="span6"

不是

class="col-md6"

创建网格时。

如何升级到bootstrap 3?

https://github.com/seyhunak/twitter-bootstrap-rails#using-less的样式表向您展示了如何包含less文件,在这里包含Twitter的Bootstrap 3的less文件?

您必须要求Bootstrap LESS(Bootstrap_and_overrides.css.LESS)在您的应用程序中.css

/**=需要引导_and_overrides*/

/*你的样式表在这里…*/使用中的各个零部件bootstrap,你的bootstrap_and_overrides.less可能看起来像这样:

最新更新