我正在为 div、h2 span 等元素使用 cufon 字体。我想为 h2、span 等特定标签禁用 cufon。
我怎样才能更换 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>
任何有想法的人都非常有帮助
谢谢 阿纳根德拉。
最佳答案
只需将一个类添加到您的异常 h2,跨度元素
更多细节在这里==> How to disable Cufon on certain elements?
关于javascript - 如何禁用 h2 标签的 cufon 样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18912829/