我有这样的html:
<legend class="green-color"><a name="section1">Section</a></legend>
legend.green-color{
color:green;
}在我的例子中,Section看起来是绿色的,但当我把鼠标指针放在它上面时,它看起来就像一个href,但我希望它保持不变,没有下划线和颜色变化。
有没有可能在不改变css的情况下实现,或者用最少的css陷阱实现?
或者可能以某种方式与jquery?
发布于 2011-08-25 18:30:10
您可以在legend.green-color a:hover下使用CSS来完成此操作。
legend.green-color a:hover {
color:green;
text-decoration:none;
}https://stackoverflow.com/questions/7188768
复制相似问题