链接悬停不起作用

Chr*_*s22 3 css class hyperlink hover

a.f_pc {
color:#2972b0;
font-weight:bold;
text-decoration:none;
}

a.f_pc:hover {
text-decoration:underline;
    }


<p><a href="faq.html" class="f_pc">learn more</a></p>
Run Code Online (Sandbox Code Playgroud)

谁能告诉我为什么当我将鼠标悬停在链接上时悬停不起作用?谢谢

小智 6

它必须被某些东西覆盖,如果您可以发布完整的 css/html,就有可能弄清楚发生了什么。您可以尝试在规则中添加 !important 来覆盖它,但我仍然建议找到它的根本原因。

a.f_pc:hover {
  text-decoration:underline !important;
}
Run Code Online (Sandbox Code Playgroud)