最佳答案
虽然您可以使用 line-height
,但它可能会搞砸下一行。所以我建议:
h1 {
font-size: 24px;
border-bottom: 2px solid #FF6A00;
/* proposing line height + padding */
line-height: 20px;
margin-bottom: 5px;
}
关于css - 在CSS中向上移动底部边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15584618/