Menu控件下拉项无法在IE8中显示

发生错误原因:
Menu控件错误的推测了自身该有的z-Index默认值。

解决方案有两种:一是安装来自于ASP.NET团队的更新补丁;其次是通过对Menu控件添加一个动态CssClass样式,手动设置其z-Index为1。
Windows Vista, Server 2008:
http://cid-5560a39f41483012.skydrive.live.com/self.aspx/Software/Windows6.0-KB967535-x86.msu

Windows 2000, XP, Server 2003:


http://cid-5560a39f41483012.skydrive.live.com/self.aspx/Software/NDP20SP2-KB969612-x86.exe

Css样式解决方案如下:

CSS code
  
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> .adjustedZIndex { z-index : 1 ; }

C# code:<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->
<asp:Menu ID="Menu1" runat="server">
<DynamicMenuStyle CssClass="adjustedZIndex" />
</asp:Menu>

你可能感兴趣的:(windows,css,XP,asp.net,asp)