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

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

问题描述

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

解决方案

2018 年更新

偏移量已恢复到 Beta 2

偏移类offset-(breakpoint)-*

<小时>

原始答案(Bootstrap 4 Beta 1)

Bootstrap 4 beta 中不再存在偏移、推、拉,因此您必须使用 自动边距.

<div class="col-4 mx-auto">我居中并偏移 4 列

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

<小时>

另见:偏移列不起作用 (Bootstrap v4.0.0-beta)

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 ?

解决方案

Updated 2018

Column offsets have been restored as of Beta 2

The offset classes are offset-(breakpoint)-*


Original answer (Bootstrap 4 Beta 1)

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


Also see: Offsetting columns is not working (Bootstrap v4.0.0-beta)

这篇关于Bootstrap 4 偏移不起作用我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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