让line-height和height的值相等即可
nav ul li a{
display: block;
text-align: center;
line-height: 80px; /*line-height==height---当a设置为block以后文字的垂直居中*/
width: 200px;
height: 80px;
color: white;
font-size: 34px;
text-decoration: none;
}
让line-height和height的值相等即可
nav ul li a{
display: block;
text-align: center;
line-height: 80px; /*line-height==height---当a设置为block以后文字的垂直居中*/
width: 200px;
height: 80px;
color: white;
font-size: 34px;
text-decoration: none;
}