For the life of me, I c开发者_开发问答an'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:
- Adding the function
Cufon.now();
. - Placing
$(document).ready( function() {});
around myCufon.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 thefont-family:
property of the element I want replaced.
For the life of me, I can't figure out why it's not working.
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?
Just a note, I'm using Adobe Browser Labs as my IE7 & IE8 previewer.
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+.
Try
- Removing
type="application/javascript"
- Not nesting
head
inside of<body>
精彩评论