Bootstrap:如何识别 Bootstrap 版本? [英] Bootstrap: How do I identify the Bootstrap version?

查看:331
本文介绍了Bootstrap:如何识别 Bootstrap 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网站上更新 Bootstrap,但我不知道安装的版本.

I want to update Bootstrap on a site, but I don't know the installed version.

如何识别 bootstrap 版本,只有 bootstrap.css 和 bootstrap.min.js 文件?

How can I identify the bootstrap version, with only bootstrap.css and bootstrap.min.js files?

CSS 文件中没有版本,min.js 文件包含以下注释.

There is no version in the CSS file and the min.js file contains the following comment.

/*!
* Bootstrap.js by @fat & @mdo
* Copyright 2012 Twitter, Inc.
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/

推荐答案

bootstrap.css 的顶部,你应该有如下注释:

In the top of the bootstrap.css you should have comments like the below:

/*!
 * Bootstrap v2.3.1
 *
 * Copyright 2012 Twitter, Inc
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Designed and built with all the love in the world @twitter by @mdo and @fat.
 */

如果它们不存在,那么它们可能已被删除.

If they are not there, then they have probably been deleted.

版本:

您可以在此处查看版本历史记录.如果源是 v2.0.0(2012 年 1 月)及更高版本,则不应破坏向后兼容性.如果它是 v2.0.0 之前的版本,则有关于升级的详细信息此处.

You can review version history here. Backward compatibility shouldn't be broken if the source is v2.0.0 (Jan 2012) and above. If it is prior to v2.0.0 there are details on upgrading here.

这篇关于Bootstrap:如何识别 Bootstrap 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆