如何识别引导版本?
我想在网站上更新bootstrap,但是我不知道使用的bootstrap的版本。 如何识别bootstrap版本,只有bootstrap.css和bootstrap.min.js文件?
在CSS中没有版本,只有在min.js中注释:
/*! * Bootstrap.js by @fat & @mdo * Copyright 2012 Twitter, Inc. * http://www.apache.org/licenses/LICENSE-2.0.txt */
在bootstrap.css
的顶部,你应该有如下的评论:
/*! * 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. */
如果他们不在那里,那么他们可能已经被删除了。 无论目前的版本,你不能只升级到最新版本?
版本:
您可以在这里查看版本历史。 如果源为v2.0.0(2012年1月)及以上版本,则不应中断向后兼容性。 如果它在v2.0.0以前有详细的升级在这里 。
Bootstrap版本将在CSS文件的顶部显示。 只要打开它,看看文件的顶部。
例如
/*! * Bootstrap v2.3.0 * * 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. */
应该在页面顶部说明。
就像是。
/* ========================================================= * bootstrap-modal.js v1.4.0 * http://twitter.github.com/bootstrap/javascript.html#modal * ========================================================= * Copyright 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ========================================================= */