覆盖特定div的css? [英] Overriding css for a specific div?
本文介绍了覆盖特定div的css?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 a:hover
我的页面上的所有链接:
a:hover {
background-color:blue;
text-decoration:underline;
color:black;
}
但是在div中有特定的当你将鼠标悬停在它们上面时,我可以这样做?
#what_we_offer a:hover {
background-color:none:
text-decoration:none;
color:none;
}
基本上我不想让它做任何上述
解决方案
code> #what_we_offer a:hover {
background-color:transparent;
text-decoration:none;
color:none;
}
使用透明而不是无效。
感谢所有的答案。
i have a a:hover
for all my links on my page:
a:hover {
background-color: blue;
text-decoration: underline;
color: black;
}
but but there are specific ones in a div that i don't want anything to happen when you hover over them, so can i do something like this?
#what_we_offer a:hover {
background-color: none:
text-decoration: none;
color: none;
}
basically i don't want it to do any of the above when it hovers over them specific links.
thanks
解决方案
#what_we_offer a:hover {
background-color: transparent;
text-decoration: none;
color: none;
}
use transparent instead of none, that works.
thanks for all the answers.
这篇关于覆盖特定div的css?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文