javascript - Cufon textShadow + hover问题

标签 javascript jquery css cufon

我只希望文本阴影处于悬停状态。

**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/

相关文章:

javascript - Google GeoCharts 平移/缩放选项?

javascript - 使用 jQuery XML 解析选定的元素

html - skew() 函数深入

javascript - 追加另一个 Div

javascript - 根据js中的颜色的数字/百分比填充图像

html - 通过名称属性的目标框架

javascript - 如何根据表单字段类型自动更新价格="number"

javascript - 作为常量存储的模板字符串

javascript - 对变量的更改会影响先前在 javascript 中保存的数组值

javascript - 表单重置后禁用“保存/提交”按钮