gpt4 book ai didi

css - 如何调整内联文本链接的边框偏移量?

转载 作者:太空宇宙 更新时间:2023-11-03 21:55:08 24 4
gpt4 key购买 nike

我使用 border-bottom: 1px dotted blue; 作为我的 anchor 标签而不是 text-decoration: underline; 所以我可以有一条虚线。

谁知道如何调整边框的偏移量使其离文本更近或更远?

Example on Fiddler

最佳答案

如果您将display设置为inline-block,您可以使用line-height将边框移近或移远。

jsFiddle .

关于css - 如何调整内联文本链接的边框偏移量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14431215/

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