gpt4 book ai didi

css - anchor 标签上的边框底部填充

转载 作者:技术小花猫 更新时间:2023-10-29 11:07:48 26 4
gpt4 key购买 nike

我在 header 内有一个 anchor 标记,我试图在 anchor 标记上放置一个 border-bottom,这有效,但是底部的填充太大,负填充不起作用,我该如何解决这个?

直播site

html

<div id="featureText">
<h1>Recent Works / <a href="#">All</a></h1>
</div>

CSS

#featureText a {
color: #414042;
text-decoration: none;
border-bottom: solid 2px #414042;
padding-bottom: -2px; }

最佳答案

#featureText a {
line-height: 1em;
display: inline-block;
color: #414042;
text-decoration: none;
border-bottom: solid 2px #414042;
padding: 0;
}

关于css - anchor 标签上的边框底部填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13546851/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com