我只希望文本阴影处于悬停状态。
**JS**
Cufon.replace('.headerright', {hover: true,'fontFamily' : 'League Gothic',textShadow:'0px 1px #cccccc'});
**CSS**
.headerright{text-transform:uppercase; font-size:76px;color:#CD7674;}
.headerright a:hover{color:#444444;}
最佳答案
您的代码从一开始就定义了 textShadow
,而不是为 hover
事件定义。
查看https://github.com/sorccu/cufon/wiki/styling ,这应该适合你:
Cufon.replace('.headerright', {
'fontFamily': 'League Gothic',
hover: {
textShadow: '0px 1px #cccccc'
}
});
关于javascript - Cufon textShadow + hover问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3030429/