【发布时间】:2011-11-08 02:07:20
【问题描述】:
如何解除文本链接被点击时的悬停不透明度效果?
例如,
a.test {
text-decoration:none;
}
a.test:hover {
text-decoration:none;
opacity:0.6 !important;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
filter:alpha(opacity=60) !important;
}
<a href="#" class="test">Click Me</a>
$(".test").click(function(){
$(this).unbind('mouseenter mouseleave');
return false;
})
我不希望点击时出现不透明悬停效果。
这里是link。
编辑:
我更喜欢没有 hack 类的解决方案。有可能吗?
【问题讨论】:
-
你显然不能解绑从未绑定过的东西:)