Java资源分享网 - 专业的Java学习网站 学Java,上Java资源分享网
Bootstrap - Jake Spurlock PDF 下载
发布于:2024-07-03 11:26:45
(假如点击没反应,多刷新两次就OK!)

Bootstrap - Jake Spurlock PDF 下载 图1

 

 

 

 

资料内容:

Basic Grid HTML
To create a simple layout, create a container with a <div> that has a class of .row and
add the appropriate amount of .span* columns. Since we have a 12-column grid, we
just need the amount of .span* columns to equal 12. We could use a 3-6-3 layout, 4-8,
3-5-4, 2-8-2… we could go on and on, but I think you get the gist.
The following code shows .span8 and .span4, which adds up to 12:
<div class="row">
 <div class="span8">...</div>
 <div class="span4">...</div>
</div>
Offsetting Columns
You can move columns to the right using the .offset* class. Each class moves the span
over that width. So an .offset2 would move a .span7 over two columns (see
Figure 1-2):
<div class="row">
 <div class="span2">...</div>
 <div class="span7 offset2">...</div>
</div>