Bootstrap 4 偏移不起作用我该如何解决? [英] Bootstrap 4 offset not working how can I solve it?
问题描述
Bootstrap 4 偏移不起作用我该如何解决?我已经尝试了很多次它的行为与以前的引导程序不同,请帮助我!我的问题是如何在这个新版本的引导程序中找到偏移量?
2018 年更新
偏移类是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屋!