开发者

cufon not working

Can anyone tell me why Cufon isn开发者_开发技巧t working on the following site: http://www.rnmtest.co.uk/aim/

Looks right to me but it just isn't working.


@geoffs3310: You realise you've commented the Cufon code out, right?

<!--<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/L_VAG_Rounded_Light_500-B_VAG_Rounded_Bold_500.font.js" type="text/javascript"></script>
<script type="text/javascript">
    Cufon.replace('h1, h2');
</script>-->

Update

@geoffs3310: I think your font is broken... I just downloaded another one from http://www.cufonfonts.com/ to test and using your above code (uncommented), with @kjy112's additional snippet, got it to work.


add <script type="text/javascript"> Cufon.now(); </script> to the bottom of your page.

List of things to look for:

  • A transitional doctype will break line-height, use a strict or HTML5 doctype.
  • Avoid whitespace (or anything else for that matter) before the doctype. This has been known to affect printing in IE.
  • UTF-8 is the only supported character set. Use others at your own risk. Characters may go missing.

As for IE9, upgrade to Cufon 1.09i

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜