gpt4 book ai didi

javascript - 为什么填充 anchor 标记会创建重复的超链接?

转载 作者:行者123 更新时间:2023-11-28 07:18:45 26 4
gpt4 key购买 nike

  nav ul li a
{
display : block ;
text-align : center;
font-weight : 600;
text-decoration : none;
color:#fff;
background-color : rgba(0,0,0,0.15);
margin : .2em 0;
padding: .2em 0;
border-radius: 1em;
box-shadow : 1px 1px 4px #000;
}

Resultant Image

删除 padding 属性使一切都很好,但我希望我的 anchor 更宽敞,但它们看起来像那样被压碎了,请帮忙

最佳答案

您可以使用行高而不是填充来添加垂直空间

关于javascript - 为什么填充 anchor 标记会创建重复的超链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32210276/

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