如果类中没有指定col-lg和col-md,那么col-sm是否适用于所有大屏?
最佳答案
是的。
来自 bootstrap ,
Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, e.g. applying any .col-md-* class to an element will not only affect its styling on medium devices but also on large devices if a .col-lg-* class is not present.
关于javascript - 在 Bootstrap 中,如果未指定 col-md 和 col-lg,类 ="col-sm-4"是否将被视为类 ="col-sm-4 col-md-4 col-lg-4"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50620951/