1. Introduction
Bootstrap is an open source front-end framework launched by Twitter.
Bootstrap was developed by Twitter's designer Mark Otto and Jacob Thornton, written by the dynamic language less. It is a "easy-to-use, elegant, flexible, scalable" Front-End toolset that provides elegant HTML/CSS specifications.
Bootstrap, which was popular after its launch, has been a popular Open-source project on GitHub, and breaking news, including MSNBC (Microsoft NBC), has been using the project.
Bootstrap is compatible with all major browsers, including all kinds of mobile devices.
2. Download and use
Bootstrap has built a responsive 12 grid layout system, which introduces fixed and fluid-with two layouts to quickly build Web applications. Bootstrap is currently the latest version of 3.0.0, you can download the source code on Bootstrap's official website http://twitter.github.com/bootstrap/.
Bootstrap is easy to use, open any text editor, create a new file and name it: test.html, add the bootstrap frame code at the beginning of the file:
<! DOCTYPE html>
As you can see from the above code: Bootstrap is built on jquery, so you need to introduce jquery first. The bootstrap framework code includes the Bootstrap.js and bootstrap.css two files.
We can then replace the contents of the BODY element with the following code:
<body> <center class= "Container-fluid" > <center class= "Row-fluid" >
<center class= "Span3" > <center class= "OK Sidebar-nav" >
<ul> <li><a href= "#" >link</a></li> <li><a href= "#" >link</a></li> <li><a href
= "#" >link</a></li> <li><a href= "#" >link</a></li> <li><a href= "#" >link</a></li> Li><a href= "#" >link</a></li> <li><a href= "#" >link</a ></li> </ul> </center> </ce
Nter> <center class= "Span9" > <center class= "Hero-unit" > < H1>hello world!