jojuniori
10/24/2016 - 6:10 PM

#CSS未知高度文字垂直居中

.wrapper {
	height: 400px;
	display: table;
}
.content {
	vertical-align: middle;
	display: table-cell;
	border: 1px solid #FF0099;
	background-color: #FFCCFF;
	width: 760px;
}
<div class="wrapper">
	<div class="content">content age</div>
</div>