0
点赞
收藏
分享

微信扫一扫

div中使文本垂直居中

.item1{
width: 412px;
height:30px;
background-color: #F2F6F9;
margin-top: 30px;
text-align:center;
line-height:30px;
}

注意:设置文本垂直居中必须要设置行高(line-height:10px;)

举报

相关推荐

0 条评论