Is there equivalent of m-t-1 class of bootstrap 4.x in bootstrap 3.x?

巧了我就是萌 提交于 2019-12-24 03:58:07

问题


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.

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


回答1:


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

Examples..

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

More on the spacing utils, and what's new in Bootstrap 4.



来源:https://stackoverflow.com/questions/43047374/is-there-equivalent-of-m-t-1-class-of-bootstrap-4-x-in-bootstrap-3-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!