Cufon 与 Nivo 发生冲突 - 替换了 nivo HTML 字幕中的字体消失
希望你能帮助我:
所以,我的 Nivo 滑块工作正常,并且我以支持方式内置了一些 HTML 标题。 然后我用 h1 和 h2 标签设计了 HTML 标题。 然后我实现 cufon 以用非标准字体替换 h1 和 h2 。 然后,nivo 字幕中断 - 行为有点不可预测,但主要是字幕的样式部分消失了。
有人见过/解决过这个问题吗?
有很多与此相关的代码,我不想让这篇文章变得臃肿,所以如果您想查看示例,请让我知道相关部分是什么。
首先,这是我的代码头部的 javascript 调用。
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery.img.preload.js"></script>
<script type="text/javascript" src="js/hint.js"></script>
<script type="text/javascript" src="js/fancybox/jquery.fancybox-1.3.0.js"></script>
<script type="text/javascript" src="js/jquery.tipsy.js"></script>
<script type="text/javascript" src="js/nivoslider/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript" src="js/jquery.scrollTo.js"></script>
<script type="text/javascript" src="js/captify/captify.tiny.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<!-- //////// Cufon - font Replacement //////// -->
<script src="js/cufon/cufon.js" type="text/javascript"></script>
<script src="js/cufon/bebas-neue.cufonfonts.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1, h3, h4, h5, #main_menu li a'); // Works without a selector engine
</script>
感谢您的任何/所有帮助。
菲尔.
Hope you can help me with this:
So, I have Nivo slider working fine and I built in some HTML captions in the support way.
Then I styed the HTML caption with h1 and h2 tags.
Then I implement cufon to replace h1 and h2 with a non-standard font.
Then, the nivo captions break - behaviour is a little unpredicatable but mainly the styled portions of the caption dissapper.
Any one seen/solved this before?
There is a lot of code associated with this and I dont want to bloat this post so let me know what the relevant parts are if you want to see examples.
Firstly, here are my javascript calls from the head section of my code.
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery.img.preload.js"></script>
<script type="text/javascript" src="js/hint.js"></script>
<script type="text/javascript" src="js/fancybox/jquery.fancybox-1.3.0.js"></script>
<script type="text/javascript" src="js/jquery.tipsy.js"></script>
<script type="text/javascript" src="js/nivoslider/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript" src="js/jquery.scrollTo.js"></script>
<script type="text/javascript" src="js/captify/captify.tiny.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<!-- //////// Cufon - font Replacement //////// -->
<script src="js/cufon/cufon.js" type="text/javascript"></script>
<script src="js/cufon/bebas-neue.cufonfonts.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1, h3, h4, h5, #main_menu li a'); // Works without a selector engine
</script>
Thanks for any/all help.
Phil.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Cufon 实际上是过时的解决方案。它在动态网站上效果非常糟糕。市场上大多数浏览器都能够使用 CSS 来显示自定义字体。您可以在这里转换字体并获取所需的 CSS http://www.fontsquirrel.com/fontface/generator。
Cufon actually is outdated solution. It works really bad on dynamic sites. Mostly all browsers on the market are able to use CSS to show custom fonts. You can convert font and get CSS you need here http://www.fontsquirrel.com/fontface/generator.