<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>垂直居中</title>
<style>
.wrap h2{
margin:0;
height:100px;
line-height:100px;
font-size:100px;
background:#ccc;
}
</style>
</head>
<body>
<div class="wrap">
<h2>hi,imooc!</h2>
</div>
</body>
</html>
我想让块里面我文字和外面的背景一样高,该怎么改代码?
李晓健