库丰的问题。需要帮助吗?
我正在开发一个简单的网站,但在显示 cufon 字体时遇到问题,这是我第一次使用此功能。我使用的是 firefox 3.6.18
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="javascript/cufon-yui.js" type="text/javascript"></script>
<script src="javascript/corbel-bold_700.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1');
Cufon.replace('selector');
Cufon.replace('#sub1');
</script>
</head>
<body>
<div id="header">
<div id="logo" onclick="window.document.location.href='http://localhost/site/'"></div>
<div id="navigation">
<div class="menu">
<h1>ABOUT</h1>
<h1>GALLERY</h1>
<h1>CONTACT</h1>
</div>
</div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>
H1 正在显示,但不在其 cufon 文本中。帮助!提前致谢!!
I'm working on a simple site but i have problem showing the cufon font, this is my first time using this feature. I'm using firefox 3.6.18
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="javascript/cufon-yui.js" type="text/javascript"></script>
<script src="javascript/corbel-bold_700.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1');
Cufon.replace('selector');
Cufon.replace('#sub1');
</script>
</head>
<body>
<div id="header">
<div id="logo" onclick="window.document.location.href='http://localhost/site/'"></div>
<div id="navigation">
<div class="menu">
<h1>ABOUT</h1>
<h1>GALLERY</h1>
<h1>CONTACT</h1>
</div>
</div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>
The H1 is showing but not in its cufon text. Help! Thanks in Advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从您发布的字体文件中收到 JavaScript 错误。尝试使用不同的字体,看看它是否有效。如果确实如此,请再次检查您的文件。
如果你的字体仍然无法工作,那么听起来像是 Cufon 的 JS 生成有问题。
I'm getting a javascript error from the font file that you posted. Try with a different font and see if it works. If it does then give it another go with your file.
If your font still doesn't work then it sounds like a problem with Cufon's JS generation.