引导程序中偏移量的用途是什么?

时间:2015-08-30 08:31:19

标签: html5 twitter-bootstrap

我是下面的引导程序的新手是我的代码

<div class="col-lg-8 col-lg-offset-2">
  <div class="section-heading">
     <h2>About us</h2>
     <i class="fa fa-2x fa-angle-down"></i>
  </div>
</div>

那么这些offset-2会做什么?是否必须使用?

1 个答案:

答案 0 :(得分:2)

偏移量会在元素的左侧增加空间。

想象一下,您的元素是以下示例中的“xxxx”:

xxxx --------(col-lg-4,无偏移)

- xxxx ------(col-lg-offset-2 col-lg-4)