引导程序3.x中是否有等同于引导程序4.x的m-t-1类? [英] Is there equivalent of m-t-1 class of bootstrap 4.x in bootstrap 3.x?

查看:56
本文介绍了引导程序3.x中是否有等同于引导程序4.x的m-t-1类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题中所述:在引导程序4(alpha版本)中,我看到一些类可以处理空白和空白,例如m-t-1p-a-1等.

As stated in the title: I see in bootstrap 4 (alpha version) there are some classes to work with margins and paddings like m-t-1, p-a-1, etc.

我知道...我可以使用自定义类.但是,仅作参考之用,引导3中是否存在等效的m-t-1p-a-1等类?

I know... I can use custom classes. But just for information, is there equivalent classes of m-t-1, p-a-1 and so on in bootstrap 3?

Tnx

推荐答案

不, spacing Bootstrap 4 中引入了用于填充和边距的实用程序类,因此在Bootstrap 3中没有等效的类.

No, the spacing utility classes for padding and margins were introduced in Bootstrap 4, so there is no equivalent in Bootstrap 3.

示例..

mb-2 =边距底部2个间距单位
m-0 =无边距
pt-3 =填充前3个间距单位
p-1 =填充所有侧面1个间距单位
py-3 =填充顶部&底部(y轴)侧3个间隔单位

mb-2 = margin bottom 2 spacing units
m-0 = no margins
pt-3 = padding top 3 spacing units
p-1 = padding all sides 1 spacing unit
py-3 = padding top & bottom (y-axis) sides 3 spacing units

有关 spacing utils 查看全文

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