CSS实现子div在父div的底部
2020-09-01 本文已影响0人
small_Sun
父div的位置设置成相对的,即“position: relative;”。
子div的位置设置成绝对的,并且下边缘设为0,即“position: absolute; bottom: 0;”。
.father {
position: relative;
.child{
position: absolute;
bottom: 0;
}
}