body{
width:800px;
background-color:rgb(90,230,140);
}
.panel{
margin:auto;
width:500px;
height:300px;
top:0;bottom:0;left:0;right:0;
position:absolute;
background-color:white;
}
![](https://img.haomeiwen.com/i4891243/b6d9097286814d10.png)
body{
width:800px;
background-color:rgb(90,230,140);
}
.panel{
margin:auto;
width:500px;
height:300px;
top:0;bottom:0;left:0;right:0;
position:absolute;
background-color:white;
}
本文标题:div在网页中垂直水平均居中
本文链接:https://www.haomeiwen.com/subject/zqcbwttx.html
网友评论