菜单下拉菜单,不显示Internet Explorer中的菜单项

编程入门 行业动态 更新时间:2024-10-27 22:26:05
本文介绍了菜单下拉菜单,不显示Internet Explorer中的菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

一旦我们在顶部菜单上

Internet Explorer

.ms-topmenu .ms-label { float:left; padding:15px; color:#fff; font-size:15px; opacity:0.9; filter:alpha(opacity = 90); outline:none!important; text-decoration:none!important; cursor:pointer; line-height:1.5; }

编辑

我尝试添加这些代码

< meta http-equiv =Content-Typecontent = html; charset = utf-8> < meta http-equiv =X-UA-Compatiblecontent =IE = 9; IE = 8/> 但还是没有运气...

console :MEGAMENU未定义在行< !- [if IE 7]> < html lang =zhid =topclass =no-js ie7> <![endif] - >

如果仍有问题,请尝试此

-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity = 50);

这将使Internet Explorer的透明度兼容。

Once we hover on top menu here , it show submenus in dropdown in all browsers expect Internet explorer 8 or 8+ versions.

other browsers

Internet Explorer

.ms-topmenu .ms-label{ float:left; padding:15px; color:#fff; font-size: 15px; opacity: 0.9; filter:alpha(opacity=90); outline: none !important; text-decoration: none !important; cursor: pointer; line-height: 1.5; }

Edit

I tried adding these code

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8" /> but still no luck....

console : MEGAMENU is Undefined in line <!--[if IE 7 ]> <html lang="en" id="top" class="no-js ie7"> <![endif]-->

解决方案

Works fine.

If still have issues, try this

-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

This will make opacity compatible on Internet Explorer.

更多推荐

菜单下拉菜单,不显示Internet Explorer中的菜单项

本文发布于:2023-11-16 19:33:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607172.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:菜单   单项   中的菜   Explorer   Internet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!