【发布时间】:2015-07-02 08:28:28
【问题描述】:
我试图做一个链接,当你 :hover 出现一个与文本颜色不同的上划线时,这里的代码对我来说似乎是正确的,但不起作用,我不知道为什么:S
.subboto a:hover {
text-decoration: overline;
text-decoration-color: #f7a319;
text-decoration-style: dashed;
}
【问题讨论】:
-
为 text-decoration-color 声明一个类。将此添加到每个
<div>。