我是 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 会做什么?它是强制使用的吗??
最佳答案
偏移量会在元素左侧增加空间。
假设您的元素是以下示例中的“xxxx”:
xxxx--------(col-lg-4,无偏移量)
--xxxx------ (col-lg-offset-2 col-lg-4)
关于html - bootstrap中的offset有什么用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32294708/