最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Can cufon style form text input and textarea? - Stack Overflow

programmeradmin1浏览0评论

Is it possible to do this? I haven't been able to find anything in the documenation that says you CAN'T do it, but the following selector is not working for me:

Cufon.set('fontFamily', 'Museo');
Cufon.set('fontWeight', '300');
Cufon.replace('input.text, input.password, textarea');

Any ideas, or does Cufon simply not support this?

Thanks.

Is it possible to do this? I haven't been able to find anything in the documenation that says you CAN'T do it, but the following selector is not working for me:

Cufon.set('fontFamily', 'Museo');
Cufon.set('fontWeight', '300');
Cufon.replace('input.text, input.password, textarea');

Any ideas, or does Cufon simply not support this?

Thanks.

Share Improve this question asked Aug 28, 2009 at 19:58 pjbeardsleypjbeardsley 1,5311 gold badge13 silver badges17 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

I would strongly advise against it. You would end up introducing tons of usability issues in your site (i.e. no copy/paste and backspace issues). Cufon has it's place in this world, but not on dynamically user edited text.

You would also introduce alot of "jump" behavior into your site since Cufon's JavaScript blocks in the browser until it has all of the required text replaced. This would break the flow of content up in your site.

发布评论

评论列表(0)

  1. 暂无评论