Grid System)The default Bootstrap grid system provides a 12-column grid with a width of 940 pixels. This means that the default width of your page is 940px, and the smallest unit factor is 940/12 PX. Bootstrap can make your webpage better adapt to a variety of terminal devices (tablets, smartphones, etc ). The concept of default grid system is 1-1:
It is very easy to implement nested columns in Bootstrap. You only need to add. Row and span * Div of the corresponding length to the original Div.
<div class="row"> <div class="span12"> Level 1 of column <div class="row"> <div class="span6">Level 2</div> <div class="span6">Level 2</div> </div> </div></div>
Change. Row to. Row-fluid to change the fixed row to fluid, that is, the stream grid system.
<div class="row-fluid"> <div class="span4">...</div> <div class="span8">...</div></div>
Fixed Layout
<body> <div class="container"> ... </div></body>
Stream Layout
<div class="container-fluid"> <div class="row-fluid"> <div class="span2"> <!--Sidebar content--> </div> <div class="span10"> <!--Body content--> </div> </div></div>
References and additional reading:
1. The reason and Development of Bootstrap. Http://www.alistapart.com/articles/building-twitter-bootstrap/
2. Introduction and comparison of less and sass. http://coding.smashingmagazine.com/2011/09/09/an-introduction-to-less-and-comparison-to-sass/
3. HTML5 template http://html5boilerplate.com/
4. HTML5 and bootstrap Hybrid Project (h5bp) https://gist.github.com/1422879
5.20 useful Bootstrap resource http://www.webresourcesdepot.com/20-beautiful-resources-that-complement-twitter-bootstrap/
6. Bootstrap button generator http://charliepark.org/bootstrap_buttons/
7. Discuss http://stackoverflow.com/questions/9525170/backend-technology-for-front-end-technologies-like-twitter-bootstrap with front end and back end
8. Bootstrap English tutorial http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/stepping-out-with-bootstrap-from-twitter/
My front-end Bootstrap (1)