简体   繁体   English

cufon样式可以形成文本输入和文本区域吗?

[英]Can cufon style form text input and textarea?

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? 有什么想法,还是Cufon根本不支持这一点?

Thanks. 谢谢。

I would strongly advise against it. 我强烈建议不要这样做。 You would end up introducing tons of usability issues in your site (ie no copy/paste and backspace issues). 您最终将在网站中引入大量的可用性问题(即,没有复制/粘贴和退格问题)。 Cufon has it's place in this world, but not on dynamically user edited text. Cufon在这个世界上占有一席之地,但在动态用户编辑的文本上却没有。

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. 由于Cufon的JavaScript会在浏览器中阻塞,直到替换了所有必需的文本,您还将在网站中引入很多“跳跃”行为。 This would break the flow of content up in your site. 这将破坏您网站中的内容流。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM