2013-07-17 34 views
-1

为什么要在自举中抵消列?为什么要抵消列?

<div class="row"> 
    <div class="span4">...</div> 
    <div class="span3 offset2">...</div> 
</div> 

我知道我们可以移动具有偏移属性的列,但是它有什么用处?

请问我能看到一些例子吗?例如,在这个例子中

http://twitter.github.io/bootstrap/scaffolding.html#gridSystem

以何种方式将在列安排帮助我们

+0

它在文档“Offsetting Columns”中的解释http://twitter.github.io/bootstrap/scaffolding.html#gridSystem – ZimSystem

回答

0

确定偏移装置向右移动colums或向左, 例如: span3 OFFSET2装置2个colums之间的差距是2个colums lenght span3 OFFSET1装置2个colums之间的间隙是1个colums长度

在bootstrap有12个colums,所以最小宽度是b/w 2 colums是1 coumn。