请输入您要查询的百科知识:

 

词条 Bootstrap (front-end framework)
释义

  1. History

      Bootstrap 4    Bootstrap 5  

  2. Features

  3. See also

  4. References

  5. External links

{{Primary sources|date=February 2017}}{{Infobox software
| name = Bootstrap
| logo = Boostrap logo.svg
| author = Mark Otto, Jacob Thornton
| developer = [https://getbootstrap.com/about/#team Bootstrap Core Team]
| released = {{Start date and age|2011|08|19}}
| latest release version = 4.3.1
| latest release date = {{release date and age|2019|02|13}}[1]
| programming language = HTML, CSS, Less (v3), Sass (v4) and JavaScript
| platform = Web platform
| license = MIT License (Apache License 2.0 prior to 3.1.0)
}}

Bootstrap is a free and open-source front-end web framework. It contains HTML and CSS-based design templates for typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions. Unlike many earlier web frameworks, it concerns itself with front-end development only.

Bootstrap is the third-most-starred project on GitHub, with more than 131,000 stars, behind only freeCodeCamp (almost 300,000 stars) and marginally behind Vue.js framework.[2] According to Alexa Rank, Bootstrap getbootstrap.com is in the top-2000 in US while vuejs.org is in top-7000 in US.[3]

History

Bootstrap, originally named Twitter Blueprint, was developed by Mark Otto and Jacob Thornton at Twitter as a framework to encourage consistency across internal tools. Before Bootstrap, various libraries were used for interface development, which led to inconsistencies and a high maintenance burden. According to Twitter developer Mark Otto:

{{quote|"A super small group of developers and I got together to design and build a new internal tool and saw an opportunity to do something more. Through that process, we saw ourselves build something much more substantial than another internal tool. Months later, we ended up with an early version of Bootstrap as a way to document and share common design patterns and assets within the company."[4]}}

After a few months of development by a small group, many developers at Twitter began to contribute to the project as a part of Hack Week, a hackathon-style week for the Twitter development team. It was renamed from Twitter Blueprint to Bootstrap, and released as an open source project on August 19, 2011.[5] It has continued to be maintained by Mark Otto, Jacob Thornton, and a small group of core developers, as well as a large community of contributors.[6]

On January 31, 2012, Bootstrap 2 was released, which added built-in support for Glyphicons, several new components, as well as changes to many of the existing components. This version supports responsive web design. This means the layout of web pages adjusts dynamically, taking into account the characteristics of the device used (desktop, tablet, mobile phone). [7]

The next major version, Bootstrap 3, was released on August 19, 2013. It redesigned components to use flat design, and a mobile first approach.[8]

Bootstrap 4

Mark Otto announced Bootstrap 4 on October 29, 2014.[9] The first alpha version of Bootstrap 4 was released on August 19, 2015.[10] The first beta version was released on 10 August 2017.[11] Mark suspended work on Bootstrap 3 on September 6, 2016, to free up time to work on Bootstrap 4. Bootstrap 4 was finalized on January 18, 2018.[12]

Significant changes include:

  • Major rewrite of the code
  • Replacing Less with Sass
  • Addition of Reboot, a collection of element-specific CSS changes in a single file, based on Normalize
  • Dropping support for IE8, IE9, and iOS 6
  • CSS Flexible Box support
  • Adding navigation customization options
  • Adding responsive spacing and sizing utilities
  • Switching from the pixels unit in CSS to root ems
  • Increasing global font size from 14px to 16px
  • Dropping the panel, thumbnail, pager, and well components
  • Dropping the Glyphicons icon font
  • Huge number{{How many|date=February 2019}} of utility classes
  • Improved form styling, buttons, drop-down menus, media objects and image classes

Bootstrap 4 supports the latest versions of the Google Chrome, Firefox, Internet Explorer, Opera, and Safari (except on Windows). It additionally supports back to IE9 and the latest Firefox Extended Support Release (ESR).[13]

Bootstrap 5

Bootstrap 5 is the upcoming major version of the framework.

Major changes include:[14]

  • Switch from jQuery library to native JavaScript
  • Dropping support for IE10
  • Moving testing infrastructure from QUnit to Jasmine

Features

Bootstrap is a web framework that focuses on simplifying the development of informative web pages (as opposed to web apps). The primary purpose of adding it to a web project is to apply Bootstrap's choices of color, size, font and layout to that project. As such, the primary factor is whether the developers in charge find those choices to their liking. Once added to a project, Bootstrap provides basic style definitions for all HTML elements. The end result is a uniform appearance for prose, tables and form elements across web browsers. In addition, developers can take advantage of CSS classes defined in Bootstrap to further customize the appearance of their contents. For example, Bootstrap has provisioned for light- and dark-colored tables, page headings, more prominent pull quotes, and text with a highlight.

Bootstrap also comes with several JavaScript components in the form of jQuery plugins. They provide additional user interface elements such as dialog boxes, tooltips, and carousels. Each Bootstrap component consists of an HTML structure, CSS declarations, and in some cases accompanying JavaScript code. They also extend the functionality of some existing interface elements, including for example an auto-complete function for input fields.

The most prominent components of Bootstrap are its layout components, as they affect an entire web page. The basic layout component is called "Container", as every other element in the page is placed in it. Developers can choose between a fixed-width container and a fluid-width container. While the latter always fills the width of the web page, the former uses one of the four predefined fixed widths, depending on the size of the screen showing the page:

  • Smaller than 576 pixels
  • 576–768 pixels
  • 768–992 pixels
  • 992–1200 pixels
  • Larger than 1200 pixels

Once a container is in place, other Bootstrap layout components implement a CSS grid layout through defining rows and columns.

A precompiled version of Bootstrap is available in the form of one CSS file and three JavaScript files that can be readily added to any project. The raw form of Bootstrap, however, enables developers to implement further customization and size optimizations. This raw form is modular, meaning that the developer can remove unneeded components, apply a theme and modify the uncompiled Sass files.

See also

{{Portal|Free and open-source software}}
  • CSS framework
  • jQuery Mobile

References

1. ^{{cite web | url = https://github.com/twbs/bootstrap/releases | title = Bootstrap 4.2.1 | last = Otto | first = Mark | date = December 21, 2018 }}
2. ^{{cite web | title=Search · stars:>1 | url=https://github.com/search?o=desc&q=stars%3A%3E1&s=stars&type=Repositories | website = GitHub | accessdate = November 14, 2018}}
3. ^{{Cite web|url=https://www.alexa.com/siteinfo|title=Website Traffic, Statistics and Analytics - Alexa|website=www.alexa.com|access-date=2019-03-22}}
4. ^{{cite web | url = http://markdotto.com/2012/01/17/bootstrap-in-a-list-apart-342/ | title = Bootstrap in A List Apart No. 342 | last = Otto | first = Mark | date = January 17, 2012 | website = Mark Otto's blog | archive-url = https://web.archive.org/web/20161028153404/http://markdotto.com/2012/01/17/bootstrap-in-a-list-apart-342/ | archive-date = October 28, 2016 | dead-url = no | access-date = February 23, 2017}}
5. ^{{cite web | url = https://blog.twitter.com/2011/bootstrap-twitter | title = Bootstrap from Twitter | last = Otto | first = Mark | date = August 19, 2011 | website = Developer Blog | publisher = Twitter | archive-url = https://web.archive.org/web/20170223125113/https://blog.twitter.com/2011/bootstrap-twitter | archive-date = February 23, 2017 | dead-url = no | access-date = February 23, 2017}}
6. ^{{cite web | url =https://getbootstrap.com/about/ | title = About | website = Bootstrap | access-date = February 23, 2017}}
7. ^{{cite web | url = https://blog.twitter.com/2012/say-hello-to-bootstrap-2 | title = Say hello to Bootstrap 2.0 | last = Otto | first = Mark | date = January 31, 2012 | website = Developer Blog | publisher = Twitter | archive-url = https://web.archive.org/web/20170223125701/https://blog.twitter.com/2012/say-hello-to-bootstrap-2 | archive-date = February 23, 2017 | dead-url = no | access-date = February 23, 2017}}
8. ^{{cite web | url = https://blog.getbootstrap.com/2013/08/19/bootstrap-3-released/ | title = Bootstrap 3 released | last = Otto | first = Mark | date = August 19, 2013 | archive-url = https://web.archive.org/web/20161021202024/http://blog.getbootstrap.com/2013/08/19/bootstrap-3-released/ | archive-date = October 23, 2016 | dead-url = no | access-date = February 23, 2017}}
9. ^{{cite web | url = https://blog.getbootstrap.com/2014/10/29/bootstrap-3-3-0-released/ | title = Bootstrap 3.3.0 released | last = Otto | first = Mark | date = October 29, 2014 | archive-url = https://web.archive.org/web/20160724153923/http://blog.getbootstrap.com/2014/10/29/bootstrap-3-3-0-released/ | archive-date = July 24, 2016 | dead-url = no | access-date = February 23, 2017}}
10. ^{{cite web | url = https://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/ | title = Bootstrap 4 alpha | last = Otto | first = Mark | date = August 19, 2015 | archive-url = https://web.archive.org/web/20170123145832/http://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/ | archive-date = January 23, 2017 | dead-url = no | access-date = February 23, 2017}}
11. ^{{Cite web|url=https://blog.getbootstrap.com/2017/08/10/bootstrap-4-beta/|title=Bootstrap 4 Beta|first1=Mark|first2=Jacob|last1=Otto|last2=Thornton|date=2017-08-10|access-date=2017-08-16}}
12. ^{{Cite web|url=https://blog.getbootstrap.com/2018/01/18/bootstrap-4/|title=Bootstrap 4|last=contributors|first=Mark Otto, Jacob Thornton, and Bootstrap|website=blog.getbootstrap.com|language=en|access-date=2018-03-16}}
13. ^{{cite web | url = https://getbootstrap.com/getting-started/#support-browsers | title = Supported browsers | website = Bootstrap | access-date = February 23, 2017}}
14. ^{{Cite web|url=https://blog.getbootstrap.com/2018/12/21/bootstrap-4-2-1/|title=Bootstrap 4.2.1|last=contributors|first=Mark Otto, Jacob Thornton, and Bootstrap|date=2018-12-21|website=Bootstrap Blog|language=en|access-date=2019-03-22}}

External links

{{Commons category|Bootstrap (framework)}}
  • {{Official website}}

11 : 2011 software|CSS frameworks|Free software programmed in JavaScript|HTML|JavaScript libraries|Software using the MIT license|Twitter|Web design|Web development|Responsive web design|Mobile Web

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 19:27:16