实现文字内容垂直上下居中-CSS5(非绝对路径)
IE与chrome皆兼容~!
.list .item {
width: 250px;
cursor: pointer;
text-align: center;
font-size: 42px;
font-weight: bolder;
border-radius: 15px;
height: 250px;
margin: 30px auto 0;
background-color: #124734;
color: #fff;
/*主要代码*/
display: flex;
justify-content: center;
align-items: center;
}