[英]How do I change the hover color to red for Cufon fonts on menu?
I have made a menu with Cufon fonts. 我用Cufon字体做了一个菜单。 They are working but I am unable to make HOVER effects on the font. 它们正在工作,但是我无法对字体进行悬停效果。 Here is the code I used 这是我使用的代码
Cufon.replace('#tag', {
fontFamily: 'ChunkFive',
color: 'White',
hover: true,
textShadow: '1px 1px #555' });
I wish to use BLUE color when hovering the mouse over a menu link. 将鼠标悬停在菜单链接上时,我希望使用蓝色。 How can I do that? 我怎样才能做到这一点?
Thanks, Niladri 谢谢,Niladri
You should use cufon.Refresh()
after you load the hover. 加载悬停后,应使用cufon.Refresh()
。 Everytime you make a modification to an existing cufon element, you need to run refresh to update the element. 每次对现有cufon元素进行修改时,都需要运行refresh以更新该元素。
Additionally, also try this article - http://galinsimeonov.com/?p=74 . 此外,也请尝试这篇文章-http://galinsimeonov.com/?p=74 。 Explains the use of Replace and also the FOUC effect that arises with using Cufon. 说明“替换”的用法以及使用Cufon时产生的FOUC效果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.