设置a标签的下划线只能通过border-bottom进行设置.
a{
text-decoration: none;
border-bottom: 1px solid red;
}
本文介绍了一种使用CSS设置a标签下划线的方法:通过border-bottom属性而非text-decoration属性来实现。这种方法提供了更多定制的可能性。
设置a标签的下划线只能通过border-bottom进行设置.
a{
text-decoration: none;
border-bottom: 1px solid red;
}
3268

被折叠的 条评论
为什么被折叠?