【发布时间】:2016-12-01 14:14:03
【问题描述】:
【问题讨论】:
-
使用边框?使用伪元素?很多方法。但是你不能直接访问下划线。
标签: css text-decorations
【问题讨论】:
标签: css text-decorations
使用border-bottom 和text-decoration: none。它似乎与带下划线的链接相同。
看看下面的sn-p:
a {
text-decoration: none;
color: red;
border-bottom: 1px solid blue;
}
a:hover {
color: blue;
border-color: red;
}
<a href="#">This is a underlined link</a>
希望这会有所帮助!
【讨论】: