Cufon Superfish 在 IE8 中隐藏下拉文本
我在我的下拉列表中使用 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>
I am using Cofunized text in my drop downs with superfish. But dropdown text is hidden in IE8. I try this fix but no luck instead it stopped working in every browser. The fix is: 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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
指定元素的高度可能会解决您的问题。如果没有,您能否向我们提供您的代码或网址或其他内容,以便我们仔细查看?
specify a height for your element might fix your problem. If not, could you provide us your code or an url or something so we can take a closer look?