Bootstrap 4偏移不起作用我该如何解决?

时间:2017-08-14 17:59:21

标签: bootstrap-4

Bootstrap 4 offset不工作怎么解决呢?我已经多次尝试过它不像以前的bootstrap那样请帮助我!我的问题是如何在这个新版本的bootstrap中找到偏移量? / p>

1 个答案:

答案 0 :(得分:55)

2018年更新

专栏offsets have been restored as of Beta 2

offset classesoffset-(breakpoint)-*

原始答案(Bootstrap 4 Beta 1)

Bootstrap 4测试版中不再存在偏移,推送,拉动,因此您必须使用auto-margins

<div class="row">
    <div class="col-4 mx-auto">
        I'm centered and offset 4 columns
    </div>
</div>

https://www.codeply.com/go/gIVefoBaAm

另见Offsetting columns is not working (Bootstrap v4.0.0-beta)