使用引导程序 4 缺少 col-xs 大小 [英] Missing col-xs sizes using bootstrap 4

查看:16
本文介绍了使用引导程序 4 缺少 col-xs 大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

In my react project, using react-bootstrap, it's loading all all the css for the grid sizes, except for the xs set.

the xs set does, however, get the default styles applied to all grid sizes, but does not include the media query.

Is there something obvious I am missing?

Bootstrap 4

解决方案

The -xs- infix was removed from Bootstrap 4 Alpha 6, so the classes are simply, col-1, col-2.. col-12, etc...

Since Bootstrap is "mobile first", the xs breakpoint (<576px) is the default and are no media queries for it. There are only media queries for the larger breakpoints to override the smaller breakpoints. Starting with the smallest each breakpoint overrides the next..

xs(default) > overridden by sm > overridden by md > overridden by lg > overridden by xl

这篇关于使用引导程序 4 缺少 col-xs 大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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