开发者

Disable cufon on selected element

Is there a way to disable cufon on all elements in selected div? Almost on whole page I u开发者_运维百科se cufon. But I want one div to be in Arial. Is there any way? I've tried something like element:not(.class) but without any results.


Update:

I'm trying to do this as well, seem to have found a solution! Make use of jQuery's :not selector:

 Cufon.replace('h1, h2:not(.question), .pageheader', { 
 color: '-linear-gradient(white, #777777)', 
 fontFamily: 'Unisans', 
 textShadow: '-2px 2px rgba(0,0,0,1)' }); 

This excludes the class h2.question from the cufon replace in Firefox, Safari, Chrome, and IE at least. :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜