Bootstrap 4偏移量不起作用我该如何解决? [英] Bootstrap 4 offset not working how can I solve it?

查看:571
本文介绍了Bootstrap 4偏移量不起作用我该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Bootstrap 4偏移量不起作用我该如何解决呢?我已经尝试了很多次,它的行为不像以前的引导程序,请帮助我!我的问题是如何在这个新版本的引导程序中找到偏移量?

Bootstrap 4 offset not working how can I solve it ?I have tried many times it's not behaving like the previous bootstrap please help me!my question is how can i find offset in this new version of bootstrap ?

推荐答案

已更新2018年

Updated 2018

自Beta 2起,补偿已恢复

偏移类offset-(breakpoint)-*

原始答案(Bootstrap 4 Beta 1)

Bootstrap 4 Beta中不再存在偏移,推动和拉动,因此您必须使用自动保证金.

Offset, push, pull no longer exist in Bootstrap 4 beta so you must use 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

另请参见: 查看全文

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