开发者

Disabling cufon styles for a specific >div>?

I am working on a wp theme that uses cufon for styling text开发者_开发问答. The problem is that now I am adding some stuff like a pricing table, which doesn't uses cufon, and the cufon styles are messing up those tables.

Is there a way to tell cufon not to style anything on that specific div tag where the pricing table is?

This is the cufon code that mess thing up:

Cufon.replace('.cufon, h1, h2, h3, h4', {
fontFamily: 'Myriad Pro Semibold'
});

Can I add a negative selector there?

Sorry if this is a silly question but I never really worked with cufon before.


Cufon.replace('.cufon, h1, h2, h3, h4:not(.myclass)', {
fontFamily: 'Myriad Pro Semibold'
});

Yep, was a silly question :P It was easier than I though

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜