鼠标移开后,cufon悬停保持悬停状态。
我相信这可能是用户在 cufon 中使用悬停时遇到的最常见问题之一。此外,可能有很多解决方案,但我尝试过却无济于事。请帮我。我遇到问题的网站是 [[这里]]
jQuery(document).ready(function(){
jQuery('.menubar a').hover(function(){
jQuery('menubar a').css('color','#000000');
Cufon.refresh('menubar a');
},function(){ // this is the mouse out
jQuery('menubar a').css('color','#707070');
Cufon.refresh('menubar a');
});
});
我也尝试过使用 Cufon.refresh() 刷新 cufon 的多次尝试。悬停仍然不起作用。还有其他解决方案还是我错过了什么?
I believe this might be one of the most common problem that users faces when they uses hover in cufon. Furthermore, there might be tons of solutions, but I have tried to no avail. Please help me. the website that I am having trouble with is [[here]]
jQuery(document).ready(function(){
jQuery('.menubar a').hover(function(){
jQuery('menubar a').css('color','#000000');
Cufon.refresh('menubar a');
},function(){ // this is the mouse out
jQuery('menubar a').css('color','#707070');
Cufon.refresh('menubar a');
});
});
I have also tried several attempt of refreshing the cufon using Cufon.refresh(). The hover still doesnt work. is there another solution or am I missing out something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在选择每个
.menubar a
而不是仅选择悬停的那个。尝试这个
:(双关语)不仅如此,您的几个选择器在它们应该是
.menubar a<时却是
menubar a
/code> (注意.
)。You're selecting every
.menubar a
instead of only the one that was hovered. Trythis
: (pun intended)Not only that, several of your selectors are
menubar a
when they should be.menubar a
(note the.
).