gpt4 book ai didi

css - md 及以上的 Bootstrap 边框?

转载 作者:行者123 更新时间:2023-11-28 10:02:57 25 4
gpt4 key购买 nike

bootstrap 或 CSS 中是否有任何方法可以使我的列在中型或更高版本的设备上只有边框?

或者与中型及以上设备相比,小型设备甚至具有不同的边框?

例如,如果我有:

<div class="container"> 
<div class="row">
<div class="col-md-12">
stuff
</div>
</div>
</div>

如何让 col-md-12 类的列在较小的设备和较大的设备上具有不同的边框?

最佳答案

根据您的要求在媒体查询中编写您的 css。

 /* Extra Small Devices, Phones */ 
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {

}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

}

关于css - md 及以上的 Bootstrap 边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23645641/

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