css 水平垂直居中、左侧宽度固定和右侧宽度自适应
水平垂直居中
第1种
.wraper {
position: relative;
.box {
position: absolute;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin: -50px 0 0 -50px;
}
}
第2种
.wraper {
position: relative;
.box {
position: absolute;
top:
原创
2021-08-19 09:44:28 ·
224 阅读 ·
0 评论