当设置了font-size时,设置行高会有误差,解决方案:
.jf-badge-news::after {
content: " ";
display: inline-block;
width: 0;
height: 100%;
vertical-align: middle;
/* margin-top: 1px; */
}
标签:行高,top,height,middle,css,设置,font,示意图,size
来源: https://blog.csdn.net/weixin_43294560/article/details/111176252