Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用text-decoration:underline;,但文字和下划线相互接触。我可以增加文字和下划线之间的空间吗?
text-decoration:underline;
这个。我想在文本和下划线之间留出空间。
使用不同的字体或使用 aborder-bottom代替,以便您可以使用padding-bottom.
border-bottom
padding-bottom
我有同样的问题,然后我使用:
.underline_text { border-bottom: solid 2px #000000; display: inline; padding-bottom: 3px; }