第一种:要想文字垂直居中对齐,可使用flex布局(亲测有效)
.btn{
display:flex;
align-items:center;
justify-content::center;
line-height:normal;
}
<div class="btn">12345</div>
----后期会不断尝试其他方法,有好的方法再更新---------------------
第一种:要想文字垂直居中对齐,可使用flex布局(亲测有效)
.btn{
display:flex;
align-items:center;
justify-content::center;
line-height:normal;
}
<div class="btn">12345</div>
----后期会不断尝试其他方法,有好的方法再更新---------------------