我刚刚安装了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错误,但是前端的字体没有被替换。
发布于 2013-02-16 21:51:39
打开您的Cufon生成的字体文件,并检查其中指定的font-family名称是否与您在Cufon.set()函数中使用的名称匹配。您要查找的代码应类似于:
Cufon.registerFont({"w":199,"face":{"font-family":"gentium-italic"...https://stackoverflow.com/questions/14810588
复制相似问题