使用flex布局,为父div添加flex布局样式align-items和justify-content
-webkit-display: flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
使用flex布局,为父div添加flex布局样式align-items和justify-content
-webkit-display: flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;