子元素(div)在父元素(div)里水平且垂直居中







div{
width:200px;
height:200px;
background-color:green;
vertical-align: middle;
display: table-cell;
}
#children{
display: inline-block;
width:100px;
height:100px;
background-color:red;
}







    推荐阅读