使cufon在IE7&中工作IE8-我已经按照文档完成了所有操作? [英] Getting cufon to work in IE7 & IE8 - I've done everything according to doc?

查看:62
本文介绍了使cufon在IE7&中工作IE8-我已经按照文档完成了所有操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的一生,我无法弄清楚为什么Cufon无法在IE7和IE7中为我工作. 8(可能也不是IE6或更低版本,但我对此并不担心).

For the life of me, I can't figure out why Cufon isn't working for me in IE7 & 8 (it probably doesn't with IE6 or lower either, but I'm not concerned about that).

到目前为止,我已经尝试过:

So far I've tried:

  • 添加功能Cufon.now();.
  • 在我的Cufon.replace();函数周围放置$(document).ready( function() {});.
  • 通过Cufon官方网站重新生成font-name.js文件.
  • 将我要替换的文本和相关的CSS/JS隔离到一个单独的文件中,以查看它是否有所不同.
  • 将在Cufon字体生成器中分配的font-family: [NAME]自我添加到我要替换的元素的font-family:属性中.
  • Adding the function Cufon.now();.
  • Placing $(document).ready( function() {}); around my Cufon.replace(); function.
  • Re-generating the font-name.js file with the official Cufon website.
  • Isolating the text I want replaced and relevant CSS/JS into a separate file to see if it makes a difference.
  • Adding the font-family: [NAME] self assigned in the Cufon font generator to the font-family: property of the element I want replaced.

对于我的一生,我不知道为什么它不起作用.

For the life of me, I can't figure out why it's not working.

以下是我在jsFiddle上隔离脚本的链接: http://jsfiddle.net/Xzv2X/1/

Here's a link to my isolated script on jsFiddle: http://jsfiddle.net/Xzv2X/1/

有人知道这里可能存在的其他常见错误吗?

Does anyone know of any other common errors that could possibly be the issue here?

请注意,我正在使用Adobe Browser Labs作为我的IE7& IE8预览器.

Just a note, I'm using Adobe Browser Labs as my IE7 & IE8 previewer.

任何评论将不胜感激:) :) :),因为这真的开始引起我的注意,因为我已经阅读了至少5个不同的网页(包括Cufon自己的GitHub FAQ),这些网页说它与IE5 +兼容.

Any comments would be greatly appreciated :) :) :), as this is really starting to get to me, as I've read at least 5 different webpages (including Cufon's own GitHub FAQ) that says it's compatible with IE5+.

推荐答案

尝试

  1. 删除type="application/javascript"
  2. 不在<body>内嵌套head
  1. Removing type="application/javascript"
  2. Not nesting head inside of <body>

这篇关于使cufon在IE7&amp;中工作IE8-我已经按照文档完成了所有操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆