开发者

Quick Cufon Question...?

I'm using Cufon to add a Custom Font to a fair bit of content on my site.

I would like to use the Cufon on the default value of a text input field. But it is开发者_如何学Gont working, Its just loading the default font on the page. Is there any way I can do this?

Example of this is here

Any help appreciated..


You cannot do this using cufon. Cufon works by changing your markup and inputs do not contain markup. You'd have better luck with @font-face (try http://www.fontsquirrel.com/) to do this.

If you insist on using cufon, you could display a span with the cufon'd text over the input and on click hide the span and set focus to the input.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜