我正在使用 cufon 进行一些字体替换,并使用 jQuery 来构建自定义手风琴。
我的手风琴的代码是这样的:
$(".acc-title").click(function () {
//show something, hide something etc.
});
是否可以在单击事件期间更改替换(使用 cufon)字体的颜色?
就像是:
$(".acc-title").click(function () {
//some something, hide something etc.
Cufon.replace('how do i select ONLY the title of this', { color: '#fff' });
});