当设置了font-size时,设置行高会有误差,解决方案:
.jf-badge-news::after {
content: " ";
display: inline-block;
width: 0;
height: 100%;
vertical-align: middle;
/* margin-top: 1px; */
}
2023-12-09 22:06:08
当设置了font-size时,设置行高会有误差,解决方案:
.jf-badge-news::after {
content: " ";
display: inline-block;
width: 0;
height: 100%;
vertical-align: middle;
/* margin-top: 1px; */
}
下一篇:练习