如何排除 link 悬停在页脚
How to exclude link hover in footer
起初我的主题效果很好,我所有的 link 都有悬停动画,有一天它变了,我找不到办法把它改回来,我写信给开发人员,但来自所有人我的问题这是他们忽略的问题。
我对编码很陌生,所以我搜索并完成了,我的 child 主题中的代码现在看起来像这样:
a:link {
color: #000000;
footer: none!important;
}
a:visited {
color: #000000;
footer: none!important;
}
a:hover {
color: #666666;
footer: none!important;
}
a:active {
color: #666666;
footer: none!important;
}
但我的问题是它一直将悬停应用到我的页脚(它有不同的文本颜色)
我试过
footer: none!important;
并与
footer_wrapper: none!important;
但是它不起作用,我做错了什么?
我只想排除 child css link 悬停在我的页脚中,因为我的主题让我可以选择样式页脚,我的页脚工作正常,但在对所有其他 link。
将此添加到您的代码中:
footer a {
color: #FFF !important;
}
footer a:hover {
color: #888 !important;
}
起初我的主题效果很好,我所有的 link 都有悬停动画,有一天它变了,我找不到办法把它改回来,我写信给开发人员,但来自所有人我的问题这是他们忽略的问题。 我对编码很陌生,所以我搜索并完成了,我的 child 主题中的代码现在看起来像这样:
a:link {
color: #000000;
footer: none!important;
}
a:visited {
color: #000000;
footer: none!important;
}
a:hover {
color: #666666;
footer: none!important;
}
a:active {
color: #666666;
footer: none!important;
}
但我的问题是它一直将悬停应用到我的页脚(它有不同的文本颜色)
我试过
footer: none!important;
并与
footer_wrapper: none!important;
但是它不起作用,我做错了什么? 我只想排除 child css link 悬停在我的页脚中,因为我的主题让我可以选择样式页脚,我的页脚工作正常,但在对所有其他 link。
将此添加到您的代码中:
footer a {
color: #FFF !important;
}
footer a:hover {
color: #888 !important;
}