【发布时间】:2011-08-16 15:17:52
【问题描述】:
我在 Superfish 的下拉菜单中使用 Cofunized 文本。但下拉文本隐藏在 IE8 中。我尝试了这个修复,但没有运气,而是停止在每个浏览器中工作。修复方法是:https://forum.jquery.com/topic/jquery-fix-superfish-cufon-in-ie8。
<script type="text/javascript">
Cufon.CSS.ready(function(){
$("ul#nav_709109").supersubs({
minWidth: 12, // minimum width of sub-menus in em units
maxWidth: 27, // maximum width of sub-menus in em units
extraWidth: 1 // extra width can ensure lines don't sometimes turn over
// due to slight rounding differences and font-family
}).superfish({
autoArrows: true, // disable generation of arrow mark-up
dropShadows: false // disable drop shadows
});
});
Cufon.replace('#main-nav li a', {fontFamily:'GRMedium',hover: true});
</script>
【问题讨论】:
-
拜托,帮网络一个忙,停止使用 cufon。使用
@font-face,它是卓越且全球支持的。 -
Font-face 不受全球支持,至少不支持 otf 和 ttf (直到 IE9) 。大多数字体不是以 eof 格式提供的,您必须使用生成器将其更改为该格式。如果您确实希望某些东西在所有主要浏览器中都能正常工作和执行,请尝试在 Google Web 字体 API 中找到一个不错的字体和收藏。
-
我无法使用字体,因为我别无选择。谁能帮我解决这个问题?
标签: jquery internet-explorer-8 drop-down-menu cufon superfish