.div{
width: 100px;
height: 100px;
position: fixed;
z-index: 999;
margin:auto;
left:0;
right:0;
top:0;
bottom:0;
}
css设置position:fixed如何让div居中
最新推荐文章于 2022-08-01 15:15:40 发布
.div{
width: 100px;
height: 100px;
position: fixed;
z-index: 999;
margin:auto;
left:0;
right:0;
top:0;
bottom:0;
}