【问题标题】:Cufon Superfish hide dropdown text in IE8Cufon Superfish 在 IE8 中隐藏下拉文本
【发布时间】: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


【解决方案1】:

为您的元素指定一个高度可能会解决您的问题。如果没有,您能否向我们提供您的代码或网址或其他内容,以便我们仔细查看?

【讨论】:

  • 抱歉,Imran,仅此一项无法为您提供太多帮助。您能否也提供css和html,以便我仔细查看?也许使用 jsfiddle.net 呢?
猜你喜欢
  • 1970-01-01
  • 2013-10-24
  • 1970-01-01
  • 2021-10-31
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-19
相关资源
最近更新 更多