gpt4 book ai didi

javascript - 在 Bootstrap 中,如果未指定 col-md 和 col-lg,类 ="col-sm-4"是否将被视为类 ="col-sm-4 col-md-4 col-lg-4"?

转载 作者:行者123 更新时间:2023-11-28 05:13:28 26 4
gpt4 key购买 nike

如果类中没有指定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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com