I am using jquery to print the date (month) in to a div on a static page, and want to use Cufon to style the font for that date (I have to use Cufon due to the license of the font.) Even though I have the div before the scripts, and the date script before the cufon script, it won't apply the font to the date. It works everywhere else on the page. Can anybody tell me why this is happening, and if there is a solution?

有帮助吗?

解决方案

One thing I can say with what you made us assume is, each and every second, I assume that some DIV's html contents get updated. So, in that update request, add this code:

Cufon.refresh();

Hopefully it should work, if not, please try posting some code so that we can give you better answers. :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top