开发者

I am using Cufon hack Cufon.now() on wordpress not working

开发者 https://www.devze.com 2022-12-19 21:25 出处:网络
I am trying to use Cufon on my wordpress, to stop the delayed appearance, I am trying to use the Cufon.now() hack withing my page but its not working, i am using F开发者_如何学编程ireFox 3.5.7 for tes

I am trying to use Cufon on my wordpress, to stop the delayed appearance, I am trying to use the Cufon.now() hack withing my page but its not working, i am using F开发者_如何学编程ireFox 3.5.7 for testing purpose, Can someone point me out where I am going wroong.


Use this :

.cufon-loading class

Similar to cufon-active, but only available when the document and/or CSS style sheets are still loading. This makes it possible to hide elements while they’re still waiting for their turn to be processed:

.cufon-loading h1 { /* for Cufon.replace('h1') */ visibility: hidden !important; }


I was not able to use the hack properly across all browsers , so I didnt display the elements on which i was using the custom fonts, until the document was ready, not exactly a workaround but the delayed appearance wasn't looking awkward.

0

精彩评论

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