gpt4 book ai didi

css - 在 bootstrap col 中定位绝对 div

转载 作者:太空宇宙 更新时间:2023-11-04 11:18:45 24 4
gpt4 key购买 nike

我尝试在 bootstrap col 中绝对定位 div-

red{
background-color:red;
}

.grid-item{
position:relative;
}

.about{
position:absolute;
left:20px;
top:20px;
}

.app{
position:absolute;
right:10px;
top:10px;
}

这是我的 fiddle : http://jsfiddle.net/nilssi/ah7m2k01/5/

位置很好,但我会考虑红色背景。

最佳答案

尝试将 heightwidth 赋给 .red 你可以看到应用了 red color:

.red{
background-color:red;
height:200px;
width:200px;
}

DEMO

关于css - 在 bootstrap col 中定位绝对 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32988084/

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