【问题标题】:wordpress cufon not workingwordpress cufon 不工作
【发布时间】:2013-02-11 10:45:55
【问题描述】:

我刚刚为 wordpress 安装了 cufon 插件,正在尝试让它进行字体替换。

我有以下html:

<h2 class="gentium twelve columns"><?php echo get_bloginfo('description'); ?></h2>

以及以下 cufon css 调用:

Cufon.set('fontFamily', 'gentium-italic').replace('h2');

在管理面板中,cufon 插件识别出“gentium-italic.js”的存在,我没有收到任何 javascript 错误,但字体没有在前端被替换。

【问题讨论】:

    标签: wordpress plugins cufon


    【解决方案1】:

    打开您的 Cufon 生成的字体文件并检查其中指定的 font-family 名称是否与您在 Cufon.set() 函数中使用的名称匹配。您要查找的代码应类似于:

    Cufon.registerFont({"w":199,"face":{"font-family":"gentium-italic"...
    

    【讨论】:

      猜你喜欢
      • 2010-11-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多