自举中偏移的用途是什么? [英] What is the use of the offset in the bootstrap?

查看:121
本文介绍了自举中偏移的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手,下面是我的代码

 < div class =col-lg-8 col- LG-偏移-2\" > 
< div class =section-heading>
< h2>关于我们< / h2>
< i class =fa fa-2x fa-angle-down>< / i>
< / div>
< / div>

那么在这里,这些抵消2将做什么?是强制使用?

解决方案

偏移量将元素左侧的空间添加到元素左侧。

想象你的元素是下面例子中的xxxx:
$ b $ xxxx --------(col-lg-4,no offset)

p>

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


I am new to the bootstrap below is my code

<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>

So over here what these offset-2 will do?Is It compulsory to use??

解决方案

The offset adds space to the left of your element.

Imagine your element is the "xxxx" in the examples below:

xxxx-------- (col-lg-4, no offset)

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

这篇关于自举中偏移的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆