问题:
代码:
width: 36px;
height: 20px;
line-height: 20px;
position: absolute;
top: 14px;
right: 14px;
color: #fff;
background: #F87D28;
border-radius: 2px;
font-size: 14px;
text-align: center;
解决方案:
width: 36px;
line-height: normal;
position: absolute;
top: 14px;
right: 14px;
color: #fff;
background: #F87D28;
border-radius: 2px;
font-size: 14px;
text-align: center;
效果图:
总结:
将行高属性值改成normal就好了
line-height: normal;