为什么我在a:hover标签上有这个奇怪的CSS行为? [英] Why I have this strange CSS behavior on the a:hover tag?
本文介绍了为什么我在a:hover标签上有这个奇怪的CSS行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在处理这个自订主题时遇到问题: http://www.asper- eritrea.com/
问题是,当您将鼠标移动到链接(例如帖子的标题)上时,它会将颜色更改为黄色
<$>这是因为它使用这个CSS设置(我使用FireBug看到它):
<$> p $ p>
.widget-sidebar ul li a,a:hover {
color:#f1b000;
}
但是为什么它使用这个CSS设置?这不是一个包含在列表中的链接到具有类小部件侧边栏
的元素本身如何解决这个问题? p>
Tnx
解决方案
将CSS样式更改为
.widget-sidebar ul li a,.widget-sidebar ul li a:hover {
color:#f1b000;
}
I have a problem with this custom theme on wich I am working on: http://www.asper-eritrea.com/
The problem is that when you pass the mouse over a link (for example the title of a post) it change color to yellow so the text appear invisible.
This happens because it use this CSS settings (I see it using FireBug):
.widget-sidebar ul li a, a:hover {
color: #f1b000;
}
But why it use this CSS settings? this is not a link contained into a list contained itself into an element having class widget-sidebar
How can I fix this issue?
Tnx
解决方案
Change the CSS Style to
.widget-sidebar ul li a, .widget-sidebar ul li a:hover {
color: #f1b000;
}
这篇关于为什么我在a:hover标签上有这个奇怪的CSS行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文