如何禁用h2标签的cufon样式?

时间:2013-09-20 09:06:22

标签: javascript jquery css grails cufon

我正在为div,h2 span等元素使用cufon字体。我想禁用特定标签的cufon,如h2,span。

如何更换cufon以禁用。

在项目中,cufon的用法是:

<script type="text/javascript" src="<j2:akamaize dir="js/cufon" file="cufon-yui.js?av=VrZj" />"></script>
<script type="text/javascript" src="<j2:akamaize dir="js/cufon" file="ITC_Avant_Garde_Gothic_Std_550-ITC_Avant_Garde_Std_Md_700-font.js" />"></script>
<script>
    Cufon.replace('fieldset.form div.field label, h2,.question, .step-text-1, .step-text-2, .step-text-3, .dumcuf', {fontFamily: 'ITC Avant Garde Gothic Std'});
 </script>

任何人都有想法非常有帮助

由于 arnagendla。

1 个答案:

答案 0 :(得分:0)

只需在您的异常h2,span元素

中添加一个类

此处有更多详情==&gt; How to disable Cufon on certain elements?

相关问题