且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET中的菜单控件与浏览器有关的问题

更新时间:2023-10-02 09:23:46

添加该代码后,它就适用于所有浏览器
After adding this one it''s work for all browsers
if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}


对于IE8 ...
在StyleSheet中添加CSS专业知识


for IE8...
Add css Proferty in StyleSheet

.IE8Fix
{
    z-index: 1000;
}


并按如下所示添加css属性...


and add the css property as follows...

<asp:Menu runat="server" >
  <DynamicMenuStyle CssClass="IE8Fix" />
</asp:Menu>


您好,
尝试在兼容性视图中使用浏览器.
请注意,这仅适用于Internet Explorer.
要以兼容性方式查看它,请转到工具"->兼容性视图".
Hi there,
Try using the browser in compatibility view.
Note this is for Internet Explorer only.
To view it in compatibility go to Tools-> compatibility View.