我正在研究Bootstrap,并且正在考虑有关偏移列的问题:http://twitter.github.com/bootstrap/scaffolding.html#gridSystemTwitter Bootstrap:偏移列?
该文档说“列应始终为每行添加12”。然后它给抵消列的例子:
<div class="row">
<div class="span4">...</div>
<div class="span3 offset2">...</div>
</div>
问题:
- 列加起来还不到12只共计7或者如果算上偏移:9。当时这只是一个不好的例子或什么?
- 为什么我要抵消任何东西?这只是为了更好地处理我的网站布局的内容?
好的,假设这段代码基于Bootstrap文档的主要内容。那应该是9,而不是4 + 3 = 7。偏移计数是否也是? 4 + 3 + 2 = 9? – StackOverflowNewbie
这是正确的,偏移量也是如此。将偏移量视为空列。每个偏移增量等于一个.span1。所以.offset2 = .span2 – jonschlinkert